Struct cln_grpc::pb::DecodeResponse

source ·
pub struct DecodeResponse {
Show 70 fields pub item_type: i32, pub valid: bool, pub offer_id: Option<Vec<u8>>, pub offer_chains: Vec<Vec<u8>>, pub offer_metadata: Option<Vec<u8>>, 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<Vec<u8>>, pub offer_absolute_expiry: Option<u64>, pub offer_quantity_max: Option<u64>, pub offer_paths: Vec<DecodeOfferPaths>, pub offer_node_id: Option<Vec<u8>>, 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<Vec<u8>>, pub invreq_payer_id: Option<Vec<u8>>, pub invreq_chain: Option<Vec<u8>>, pub invreq_amount_msat: Option<Amount>, pub invreq_features: Option<Vec<u8>>, 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<Vec<u8>>, pub invoice_amount_msat: Option<Amount>, pub invoice_fallbacks: Vec<DecodeInvoiceFallbacks>, pub invoice_features: Option<Vec<u8>>, pub invoice_node_id: Option<Vec<u8>>, 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: Vec<DecodeFallbacks>, pub created_at: Option<u64>, pub expiry: Option<u64>, pub payee: Option<Vec<u8>>, pub payment_hash: Option<Vec<u8>>, pub description_hash: Option<Vec<u8>>, pub min_final_cltv_expiry: Option<u32>, pub payment_secret: Option<Vec<u8>>, pub payment_metadata: Option<Vec<u8>>, pub extra: Vec<DecodeExtra>, pub unique_id: Option<String>, pub version: Option<String>, pub string: Option<String>, pub restrictions: Vec<DecodeRestrictions>, pub warning_rune_invalid_utf8: Option<String>, pub hex: Option<Vec<u8>>, pub decrypted: Option<Vec<u8>>,
}

Fields§

§item_type: i32§valid: bool§offer_id: Option<Vec<u8>>§offer_chains: Vec<Vec<u8>>§offer_metadata: Option<Vec<u8>>§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<Vec<u8>>§offer_absolute_expiry: Option<u64>§offer_quantity_max: Option<u64>§offer_paths: Vec<DecodeOfferPaths>§offer_node_id: Option<Vec<u8>>§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<Vec<u8>>§invreq_payer_id: Option<Vec<u8>>§invreq_chain: Option<Vec<u8>>§invreq_amount_msat: Option<Amount>§invreq_features: Option<Vec<u8>>§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<Vec<u8>>§invoice_amount_msat: Option<Amount>§invoice_fallbacks: Vec<DecodeInvoiceFallbacks>§invoice_features: Option<Vec<u8>>§invoice_node_id: Option<Vec<u8>>§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: Vec<DecodeFallbacks>§created_at: Option<u64>§expiry: Option<u64>§payee: Option<Vec<u8>>§payment_hash: Option<Vec<u8>>§description_hash: Option<Vec<u8>>§min_final_cltv_expiry: Option<u32>§payment_secret: Option<Vec<u8>>§payment_metadata: Option<Vec<u8>>§extra: Vec<DecodeExtra>§unique_id: Option<String>§version: Option<String>§string: Option<String>§restrictions: Vec<DecodeRestrictions>§warning_rune_invalid_utf8: Option<String>§hex: Option<Vec<u8>>§decrypted: Option<Vec<u8>>

Implementations§

source§

impl DecodeResponse

source

pub fn item_type(&self) -> DecodeType

Returns the enum value of item_type, or the default if the field is set to an invalid enum value.

source

pub fn set_item_type(&mut self, value: DecodeType)

Sets item_type to the provided enum value.

source

pub fn offer_id(&self) -> &[u8]

Returns the value of offer_id, or the default value if offer_id is unset.

source

pub fn offer_metadata(&self) -> &[u8]

Returns the value of offer_metadata, or the default value if offer_metadata is unset.

source

pub fn offer_currency(&self) -> &str

Returns the value of offer_currency, or the default value if offer_currency is unset.

source

pub fn warning_unknown_offer_currency(&self) -> &str

Returns the value of warning_unknown_offer_currency, or the default value if warning_unknown_offer_currency is unset.

source

pub fn currency_minor_unit(&self) -> u32

Returns the value of currency_minor_unit, or the default value if currency_minor_unit is unset.

source

pub fn offer_amount(&self) -> u64

Returns the value of offer_amount, or the default value if offer_amount is unset.

source

pub fn offer_description(&self) -> &str

Returns the value of offer_description, or the default value if offer_description is unset.

source

pub fn offer_issuer(&self) -> &str

Returns the value of offer_issuer, or the default value if offer_issuer is unset.

source

pub fn offer_features(&self) -> &[u8]

Returns the value of offer_features, or the default value if offer_features is unset.

source

pub fn offer_absolute_expiry(&self) -> u64

Returns the value of offer_absolute_expiry, or the default value if offer_absolute_expiry is unset.

source

pub fn offer_quantity_max(&self) -> u64

Returns the value of offer_quantity_max, or the default value if offer_quantity_max is unset.

source

pub fn offer_node_id(&self) -> &[u8]

Returns the value of offer_node_id, or the default value if offer_node_id is unset.

source

pub fn warning_missing_offer_node_id(&self) -> &str

Returns the value of warning_missing_offer_node_id, or the default value if warning_missing_offer_node_id is unset.

source

pub fn warning_invalid_offer_description(&self) -> &str

Returns the value of warning_invalid_offer_description, or the default value if warning_invalid_offer_description is unset.

source

pub fn warning_missing_offer_description(&self) -> &str

Returns the value of warning_missing_offer_description, or the default value if warning_missing_offer_description is unset.

source

pub fn warning_invalid_offer_currency(&self) -> &str

Returns the value of warning_invalid_offer_currency, or the default value if warning_invalid_offer_currency is unset.

source

pub fn warning_invalid_offer_issuer(&self) -> &str

Returns the value of warning_invalid_offer_issuer, or the default value if warning_invalid_offer_issuer is unset.

source

pub fn invreq_metadata(&self) -> &[u8]

Returns the value of invreq_metadata, or the default value if invreq_metadata is unset.

source

pub fn invreq_payer_id(&self) -> &[u8]

Returns the value of invreq_payer_id, or the default value if invreq_payer_id is unset.

source

pub fn invreq_chain(&self) -> &[u8]

Returns the value of invreq_chain, or the default value if invreq_chain is unset.

source

pub fn invreq_features(&self) -> &[u8]

Returns the value of invreq_features, or the default value if invreq_features is unset.

source

pub fn invreq_quantity(&self) -> u64

Returns the value of invreq_quantity, or the default value if invreq_quantity is unset.

source

pub fn invreq_payer_note(&self) -> &str

Returns the value of invreq_payer_note, or the default value if invreq_payer_note is unset.

source

pub fn invreq_recurrence_counter(&self) -> u32

Returns the value of invreq_recurrence_counter, or the default value if invreq_recurrence_counter is unset.

source

pub fn invreq_recurrence_start(&self) -> u32

Returns the value of invreq_recurrence_start, or the default value if invreq_recurrence_start is unset.

source

pub fn warning_missing_invreq_metadata(&self) -> &str

Returns the value of warning_missing_invreq_metadata, or the default value if warning_missing_invreq_metadata is unset.

source

pub fn warning_missing_invreq_payer_id(&self) -> &str

Returns the value of warning_missing_invreq_payer_id, or the default value if warning_missing_invreq_payer_id is unset.

source

pub fn warning_invalid_invreq_payer_note(&self) -> &str

Returns the value of warning_invalid_invreq_payer_note, or the default value if warning_invalid_invreq_payer_note is unset.

source

pub fn warning_missing_invoice_request_signature(&self) -> &str

Returns the value of warning_missing_invoice_request_signature, or the default value if warning_missing_invoice_request_signature is unset.

source

pub fn warning_invalid_invoice_request_signature(&self) -> &str

Returns the value of warning_invalid_invoice_request_signature, or the default value if warning_invalid_invoice_request_signature is unset.

source

pub fn invoice_created_at(&self) -> u64

Returns the value of invoice_created_at, or the default value if invoice_created_at is unset.

source

pub fn invoice_relative_expiry(&self) -> u32

Returns the value of invoice_relative_expiry, or the default value if invoice_relative_expiry is unset.

source

pub fn invoice_payment_hash(&self) -> &[u8]

Returns the value of invoice_payment_hash, or the default value if invoice_payment_hash is unset.

source

pub fn invoice_features(&self) -> &[u8]

Returns the value of invoice_features, or the default value if invoice_features is unset.

source

pub fn invoice_node_id(&self) -> &[u8]

Returns the value of invoice_node_id, or the default value if invoice_node_id is unset.

source

pub fn invoice_recurrence_basetime(&self) -> u64

Returns the value of invoice_recurrence_basetime, or the default value if invoice_recurrence_basetime is unset.

source

pub fn warning_missing_invoice_paths(&self) -> &str

Returns the value of warning_missing_invoice_paths, or the default value if warning_missing_invoice_paths is unset.

source

pub fn warning_missing_invoice_blindedpay(&self) -> &str

Returns the value of warning_missing_invoice_blindedpay, or the default value if warning_missing_invoice_blindedpay is unset.

source

pub fn warning_missing_invoice_created_at(&self) -> &str

Returns the value of warning_missing_invoice_created_at, or the default value if warning_missing_invoice_created_at is unset.

source

pub fn warning_missing_invoice_payment_hash(&self) -> &str

Returns the value of warning_missing_invoice_payment_hash, or the default value if warning_missing_invoice_payment_hash is unset.

source

pub fn warning_missing_invoice_amount(&self) -> &str

Returns the value of warning_missing_invoice_amount, or the default value if warning_missing_invoice_amount is unset.

source

pub fn warning_missing_invoice_recurrence_basetime(&self) -> &str

Returns the value of warning_missing_invoice_recurrence_basetime, or the default value if warning_missing_invoice_recurrence_basetime is unset.

source

pub fn warning_missing_invoice_node_id(&self) -> &str

Returns the value of warning_missing_invoice_node_id, or the default value if warning_missing_invoice_node_id is unset.

source

pub fn warning_missing_invoice_signature(&self) -> &str

Returns the value of warning_missing_invoice_signature, or the default value if warning_missing_invoice_signature is unset.

source

pub fn warning_invalid_invoice_signature(&self) -> &str

Returns the value of warning_invalid_invoice_signature, or the default value if warning_invalid_invoice_signature is unset.

source

pub fn created_at(&self) -> u64

Returns the value of created_at, or the default value if created_at is unset.

source

pub fn expiry(&self) -> u64

Returns the value of expiry, or the default value if expiry is unset.

source

pub fn payee(&self) -> &[u8]

Returns the value of payee, or the default value if payee is unset.

source

pub fn payment_hash(&self) -> &[u8]

Returns the value of payment_hash, or the default value if payment_hash is unset.

source

pub fn description_hash(&self) -> &[u8]

Returns the value of description_hash, or the default value if description_hash is unset.

source

pub fn min_final_cltv_expiry(&self) -> u32

Returns the value of min_final_cltv_expiry, or the default value if min_final_cltv_expiry is unset.

source

pub fn payment_secret(&self) -> &[u8]

Returns the value of payment_secret, or the default value if payment_secret is unset.

source

pub fn payment_metadata(&self) -> &[u8]

Returns the value of payment_metadata, or the default value if payment_metadata is unset.

source

pub fn unique_id(&self) -> &str

Returns the value of unique_id, or the default value if unique_id is unset.

source

pub fn version(&self) -> &str

Returns the value of version, or the default value if version is unset.

source

pub fn string(&self) -> &str

Returns the value of string, or the default value if string is unset.

source

pub fn warning_rune_invalid_utf8(&self) -> &str

Returns the value of warning_rune_invalid_utf8, or the default value if warning_rune_invalid_utf8 is unset.

source

pub fn hex(&self) -> &[u8]

Returns the value of hex, or the default value if hex is unset.

source

pub fn decrypted(&self) -> &[u8]

Returns the value of decrypted, or the default value if decrypted is unset.

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 Default for DecodeResponse

source§

fn default() -> Self

Returns the “default value” for a type. 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 Message for DecodeResponse

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for DecodeResponse

source§

fn eq(&self, other: &DecodeResponse) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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 StructuralPartialEq for DecodeResponse

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> FromRef<T> for T
where T: Clone,

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
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> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
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<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

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>,