pub enum Bolt11InvoiceDescription<'f> {
Direct(&'f Description),
Hash(&'f Sha256),
}
Expand description
Represents the description of an invoice which has to be either a directly included string or a hash of a description provided out of band.
This is not exported to bindings users as we don’t have a good way to map the reference lifetimes making this practically impossible to use safely in languages like C.
Variants§
Direct(&'f Description)
Reference to the directly supplied description in the invoice
Hash(&'f Sha256)
Reference to the description’s hash included in the invoice
Trait Implementations§
§impl<'f> Clone for Bolt11InvoiceDescription<'f>
impl<'f> Clone for Bolt11InvoiceDescription<'f>
§fn clone(&self) -> Bolt11InvoiceDescription<'f>
fn clone(&self) -> Bolt11InvoiceDescription<'f>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<'f> Debug for Bolt11InvoiceDescription<'f>
impl<'f> Debug for Bolt11InvoiceDescription<'f>
§impl<'f> Ord for Bolt11InvoiceDescription<'f>
impl<'f> Ord for Bolt11InvoiceDescription<'f>
§fn cmp(&self, other: &Bolt11InvoiceDescription<'f>) -> Ordering
fn cmp(&self, other: &Bolt11InvoiceDescription<'f>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl<'f> PartialEq for Bolt11InvoiceDescription<'f>
impl<'f> PartialEq for Bolt11InvoiceDescription<'f>
§impl<'f> PartialOrd for Bolt11InvoiceDescription<'f>
impl<'f> PartialOrd for Bolt11InvoiceDescription<'f>
impl<'f> Eq for Bolt11InvoiceDescription<'f>
impl<'f> StructuralPartialEq for Bolt11InvoiceDescription<'f>
Auto Trait Implementations§
impl<'f> Freeze for Bolt11InvoiceDescription<'f>
impl<'f> RefUnwindSafe for Bolt11InvoiceDescription<'f>
impl<'f> Send for Bolt11InvoiceDescription<'f>
impl<'f> Sync for Bolt11InvoiceDescription<'f>
impl<'f> Unpin for Bolt11InvoiceDescription<'f>
impl<'f> UnwindSafe for Bolt11InvoiceDescription<'f>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request