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 of PaymentHash

0: Sha256
Description(Description)

Tuple Fields of Description

0: Description
PayeePubKey(PayeePubKey)

Tuple Fields of PayeePubKey

0: PayeePubKey
DescriptionHash(Sha256)

Tuple Fields of DescriptionHash

0: Sha256
ExpiryTime(ExpiryTime)

Tuple Fields of ExpiryTime

0: ExpiryTime
MinFinalCltvExpiry(MinFinalCltvExpiry)

Tuple Fields of MinFinalCltvExpiry

0: MinFinalCltvExpiry
Fallback(Fallback)

Tuple Fields of Fallback

0: Fallback
PrivateRoute(PrivateRoute)

Tuple Fields of PrivateRoute

0: PrivateRoute
PaymentSecret(PaymentSecret)

Tuple Fields of PaymentSecret

0: PaymentSecret
Features(InvoiceFeatures)

Tuple Fields of Features

0: InvoiceFeatures

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)

recently added

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.