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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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
Converts to this type from the input type.
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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more