Enum lightning_invoice::TaggedField
source · [−]pub enum TaggedField {
PaymentHash(Sha256),
Description(Description),
PayeePubKey(PayeePubKey),
DescriptionHash(Sha256),
ExpiryTime(ExpiryTime),
MinFinalCltvExpiry(MinFinalCltvExpiry),
Fallback(Fallback),
PrivateRoute(PrivateRoute),
PaymentSecret(PaymentSecret),
Features(InvoiceFeatures),
}
Expand description
Tagged field with known tag
For descriptions of the enum values please refer to the enclosed type’s docs.
(C-not exported) As we don’t yet support enum variants with the same name the struct contained in the variant.
Variants
PaymentHash(Sha256)
Description(Description)
PayeePubKey(PayeePubKey)
DescriptionHash(Sha256)
ExpiryTime(ExpiryTime)
MinFinalCltvExpiry(MinFinalCltvExpiry)
Fallback(Fallback)
PrivateRoute(PrivateRoute)
PaymentSecret(PaymentSecret)
Features(InvoiceFeatures)
Implementations
sourceimpl TaggedField
impl TaggedField
Trait Implementations
sourceimpl Clone for TaggedField
impl Clone for TaggedField
sourcefn clone(&self) -> TaggedField
fn clone(&self) -> TaggedField
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TaggedField
impl Debug for TaggedField
sourceimpl From<TaggedField> for RawTaggedField
impl From<TaggedField> for RawTaggedField
sourcefn from(tf: TaggedField) -> Self
fn from(tf: TaggedField) -> Self
Performs the conversion.
sourceimpl FromBase32 for TaggedField
impl FromBase32 for TaggedField
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
sourcefn from_base32(field: &[u5]) -> Result<TaggedField, ParseError>
fn from_base32(field: &[u5]) -> Result<TaggedField, ParseError>
Convert a base32 slice to Self
.
sourceimpl Hash for TaggedField
impl Hash for TaggedField
sourceimpl PartialEq<TaggedField> for TaggedField
impl PartialEq<TaggedField> for TaggedField
sourcefn eq(&self, other: &TaggedField) -> bool
fn eq(&self, other: &TaggedField) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TaggedField) -> bool
fn ne(&self, other: &TaggedField) -> bool
This method tests for !=
.
sourceimpl ToBase32 for TaggedField
impl ToBase32 for TaggedField
sourcefn write_base32<W: WriteBase32>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
fn write_base32<W: WriteBase32>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate. Read more
impl Eq for TaggedField
impl StructuralEq for TaggedField
impl StructuralPartialEq for TaggedField
Auto Trait Implementations
impl RefUnwindSafe for TaggedField
impl Send for TaggedField
impl Sync for TaggedField
impl Unpin for TaggedField
impl UnwindSafe for TaggedField
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more