pub struct DecodeResponse {
Show 70 fields pub item_type: DecodeType, pub valid: bool, pub offer_id: Option<String>, pub offer_chains: Option<Vec<Sha256>>, pub offer_metadata: Option<String>, pub offer_currency: Option<String>, pub warning_unknown_offer_currency: Option<String>, pub currency_minor_unit: Option<u32>, pub offer_amount: Option<u64>, pub offer_amount_msat: Option<Amount>, pub offer_description: Option<String>, pub offer_issuer: Option<String>, pub offer_features: Option<String>, pub offer_absolute_expiry: Option<u64>, pub offer_quantity_max: Option<u64>, pub offer_paths: Option<Vec<DecodeOffer_paths>>, pub offer_node_id: Option<PublicKey>, pub warning_missing_offer_node_id: Option<String>, pub warning_invalid_offer_description: Option<String>, pub warning_missing_offer_description: Option<String>, pub warning_invalid_offer_currency: Option<String>, pub warning_invalid_offer_issuer: Option<String>, pub invreq_metadata: Option<String>, pub invreq_payer_id: Option<String>, pub invreq_chain: Option<String>, pub invreq_amount_msat: Option<Amount>, pub invreq_features: Option<String>, pub invreq_quantity: Option<u64>, pub invreq_payer_note: Option<String>, pub invreq_recurrence_counter: Option<u32>, pub invreq_recurrence_start: Option<u32>, pub warning_missing_invreq_metadata: Option<String>, pub warning_missing_invreq_payer_id: Option<String>, pub warning_invalid_invreq_payer_note: Option<String>, pub warning_missing_invoice_request_signature: Option<String>, pub warning_invalid_invoice_request_signature: Option<String>, pub invoice_created_at: Option<u64>, pub invoice_relative_expiry: Option<u32>, pub invoice_payment_hash: Option<String>, pub invoice_amount_msat: Option<Amount>, pub invoice_fallbacks: Option<Vec<DecodeInvoice_fallbacks>>, pub invoice_features: Option<String>, pub invoice_node_id: Option<PublicKey>, pub invoice_recurrence_basetime: Option<u64>, pub warning_missing_invoice_paths: Option<String>, pub warning_missing_invoice_blindedpay: Option<String>, pub warning_missing_invoice_created_at: Option<String>, pub warning_missing_invoice_payment_hash: Option<String>, pub warning_missing_invoice_amount: Option<String>, pub warning_missing_invoice_recurrence_basetime: Option<String>, pub warning_missing_invoice_node_id: Option<String>, pub warning_missing_invoice_signature: Option<String>, pub warning_invalid_invoice_signature: Option<String>, pub fallbacks: Option<Vec<DecodeFallbacks>>, pub created_at: Option<u64>, pub expiry: Option<u64>, pub payee: Option<PublicKey>, pub payment_hash: Option<Sha256>, pub description_hash: Option<Sha256>, pub min_final_cltv_expiry: Option<u32>, pub payment_secret: Option<Secret>, pub payment_metadata: Option<String>, pub extra: Option<Vec<DecodeExtra>>, pub unique_id: Option<String>, pub version: Option<String>, pub string: Option<String>, pub restrictions: Option<Vec<DecodeRestrictions>>, pub warning_rune_invalid_utf8: Option<String>, pub hex: Option<String>, pub decrypted: Option<String>,
}

Fields§

§item_type: DecodeType§valid: bool§offer_id: Option<String>§offer_chains: Option<Vec<Sha256>>§offer_metadata: Option<String>§offer_currency: Option<String>§warning_unknown_offer_currency: Option<String>§currency_minor_unit: Option<u32>§offer_amount: Option<u64>§offer_amount_msat: Option<Amount>§offer_description: Option<String>§offer_issuer: Option<String>§offer_features: Option<String>§offer_absolute_expiry: Option<u64>§offer_quantity_max: Option<u64>§offer_paths: Option<Vec<DecodeOffer_paths>>§offer_node_id: Option<PublicKey>§warning_missing_offer_node_id: Option<String>§warning_invalid_offer_description: Option<String>§warning_missing_offer_description: Option<String>§warning_invalid_offer_currency: Option<String>§warning_invalid_offer_issuer: Option<String>§invreq_metadata: Option<String>§invreq_payer_id: Option<String>§invreq_chain: Option<String>§invreq_amount_msat: Option<Amount>§invreq_features: Option<String>§invreq_quantity: Option<u64>§invreq_payer_note: Option<String>§invreq_recurrence_counter: Option<u32>§invreq_recurrence_start: Option<u32>§warning_missing_invreq_metadata: Option<String>§warning_missing_invreq_payer_id: Option<String>§warning_invalid_invreq_payer_note: Option<String>§warning_missing_invoice_request_signature: Option<String>§warning_invalid_invoice_request_signature: Option<String>§invoice_created_at: Option<u64>§invoice_relative_expiry: Option<u32>§invoice_payment_hash: Option<String>§invoice_amount_msat: Option<Amount>§invoice_fallbacks: Option<Vec<DecodeInvoice_fallbacks>>§invoice_features: Option<String>§invoice_node_id: Option<PublicKey>§invoice_recurrence_basetime: Option<u64>§warning_missing_invoice_paths: Option<String>§warning_missing_invoice_blindedpay: Option<String>§warning_missing_invoice_created_at: Option<String>§warning_missing_invoice_payment_hash: Option<String>§warning_missing_invoice_amount: Option<String>§warning_missing_invoice_recurrence_basetime: Option<String>§warning_missing_invoice_node_id: Option<String>§warning_missing_invoice_signature: Option<String>§warning_invalid_invoice_signature: Option<String>§fallbacks: Option<Vec<DecodeFallbacks>>§created_at: Option<u64>§expiry: Option<u64>§payee: Option<PublicKey>§payment_hash: Option<Sha256>§description_hash: Option<Sha256>§min_final_cltv_expiry: Option<u32>§payment_secret: Option<Secret>§payment_metadata: Option<String>§extra: Option<Vec<DecodeExtra>>§unique_id: Option<String>§version: Option<String>§string: Option<String>§restrictions: Option<Vec<DecodeRestrictions>>§warning_rune_invalid_utf8: Option<String>§hex: Option<String>§decrypted: Option<String>

Trait Implementations§

source§

impl Clone for DecodeResponse

source§

fn clone(&self) -> DecodeResponse

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DecodeResponse

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DecodeResponse

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for DecodeResponse

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<Response> for DecodeResponse

§

type Error = TryFromResponseError

The type returned in the event of a conversion error.
source§

fn try_from(response: Response) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,