Struct cln_grpc::pb::WaitinvoiceResponse
source · pub struct WaitinvoiceResponse {Show 15 fields
pub label: String,
pub description: String,
pub payment_hash: Vec<u8>,
pub status: i32,
pub expires_at: u64,
pub amount_msat: Option<Amount>,
pub bolt11: Option<String>,
pub bolt12: Option<String>,
pub created_index: Option<u64>,
pub updated_index: Option<u64>,
pub pay_index: Option<u64>,
pub amount_received_msat: Option<Amount>,
pub paid_at: Option<u64>,
pub paid_outpoint: Option<WaitinvoicePaidOutpoint>,
pub payment_preimage: Option<Vec<u8>>,
}Fields§
§label: String§description: String§payment_hash: Vec<u8>§status: i32§expires_at: u64§amount_msat: Option<Amount>§bolt11: Option<String>§bolt12: Option<String>§created_index: Option<u64>§updated_index: Option<u64>§pay_index: Option<u64>§amount_received_msat: Option<Amount>§paid_at: Option<u64>§paid_outpoint: Option<WaitinvoicePaidOutpoint>§payment_preimage: Option<Vec<u8>>Implementations§
source§impl WaitinvoiceResponse
impl WaitinvoiceResponse
sourcepub fn status(&self) -> WaitinvoiceStatus
pub fn status(&self) -> WaitinvoiceStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
sourcepub fn set_status(&mut self, value: WaitinvoiceStatus)
pub fn set_status(&mut self, value: WaitinvoiceStatus)
Sets status to the provided enum value.
sourcepub fn bolt11(&self) -> &str
pub fn bolt11(&self) -> &str
Returns the value of bolt11, or the default value if bolt11 is unset.
sourcepub fn bolt12(&self) -> &str
pub fn bolt12(&self) -> &str
Returns the value of bolt12, or the default value if bolt12 is unset.
sourcepub fn pay_index(&self) -> u64
pub fn pay_index(&self) -> u64
Returns the value of pay_index, or the default value if pay_index is unset.
sourcepub fn paid_at(&self) -> u64
pub fn paid_at(&self) -> u64
Returns the value of paid_at, or the default value if paid_at is unset.
sourcepub fn payment_preimage(&self) -> &[u8] ⓘ
pub fn payment_preimage(&self) -> &[u8] ⓘ
Returns the value of payment_preimage, or the default value if payment_preimage is unset.
sourcepub fn created_index(&self) -> u64
pub fn created_index(&self) -> u64
Returns the value of created_index, or the default value if created_index is unset.
sourcepub fn updated_index(&self) -> u64
pub fn updated_index(&self) -> u64
Returns the value of updated_index, or the default value if updated_index is unset.
Trait Implementations§
source§impl Clone for WaitinvoiceResponse
impl Clone for WaitinvoiceResponse
source§fn clone(&self) -> WaitinvoiceResponse
fn clone(&self) -> WaitinvoiceResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WaitinvoiceResponse
impl Debug for WaitinvoiceResponse
source§impl Default for WaitinvoiceResponse
impl Default for WaitinvoiceResponse
source§impl<'de> Deserialize<'de> for WaitinvoiceResponse
impl<'de> Deserialize<'de> for WaitinvoiceResponse
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 WaitinvoiceResponse
impl Message for WaitinvoiceResponse
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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,
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>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.source§impl PartialEq for WaitinvoiceResponse
impl PartialEq for WaitinvoiceResponse
source§fn eq(&self, other: &WaitinvoiceResponse) -> bool
fn eq(&self, other: &WaitinvoiceResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for WaitinvoiceResponse
impl Serialize for WaitinvoiceResponse
impl StructuralPartialEq for WaitinvoiceResponse
Auto Trait Implementations§
impl RefUnwindSafe for WaitinvoiceResponse
impl Send for WaitinvoiceResponse
impl Sync for WaitinvoiceResponse
impl Unpin for WaitinvoiceResponse
impl UnwindSafe for WaitinvoiceResponse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request