Enum lightning_invoice::TaggedField[][src]

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)

Tuple Fields

0: Sha256

Description(Description)

Tuple Fields

PayeePubKey(PayeePubKey)

Tuple Fields

DescriptionHash(Sha256)

Tuple Fields

0: Sha256

ExpiryTime(ExpiryTime)

Tuple Fields

MinFinalCltvExpiry(MinFinalCltvExpiry)

Tuple Fields

Fallback(Fallback)

Tuple Fields

PrivateRoute(PrivateRoute)

Tuple Fields

PaymentSecret(PaymentSecret)

Tuple Fields

Features(InvoiceFeatures)

Tuple Fields

Implementations

Numeric representation of the field’s tag

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

The associated error which can be returned from parsing (e.g. because of bad padding).

Convert a base32 slice to Self.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate. Read more

Convert Self to base32 vector

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.