pub struct SendinvoiceResponse {Show 13 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 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 payment_preimage: Option<Vec<u8>>,
}
Fields§
§label: String
§description: String
§payment_hash: Vec<u8>
§status: i32
§expires_at: u64
§amount_msat: Option<Amount>
§bolt12: Option<String>
§created_index: Option<u64>
§updated_index: Option<u64>
§pay_index: Option<u64>
§amount_received_msat: Option<Amount>
§paid_at: Option<u64>
§payment_preimage: Option<Vec<u8>>
Implementations§
Source§impl SendinvoiceResponse
impl SendinvoiceResponse
Sourcepub fn status(&self) -> SendinvoiceStatus
pub fn status(&self) -> SendinvoiceStatus
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: SendinvoiceStatus)
pub fn set_status(&mut self, value: SendinvoiceStatus)
Sets status
to the provided enum value.
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 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.
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.
Trait Implementations§
Source§impl Clone for SendinvoiceResponse
impl Clone for SendinvoiceResponse
Source§fn clone(&self) -> SendinvoiceResponse
fn clone(&self) -> SendinvoiceResponse
Returns a duplicate 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 SendinvoiceResponse
impl Debug for SendinvoiceResponse
Source§impl Default for SendinvoiceResponse
impl Default for SendinvoiceResponse
Source§fn default() -> SendinvoiceResponse
fn default() -> SendinvoiceResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SendinvoiceResponse
impl<'de> Deserialize<'de> for SendinvoiceResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SendinvoiceResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SendinvoiceResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for SendinvoiceResponse
impl Message for SendinvoiceResponse
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 SendinvoiceResponse
impl PartialEq for SendinvoiceResponse
Source§impl Serialize for SendinvoiceResponse
impl Serialize for SendinvoiceResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SendinvoiceResponse
Auto Trait Implementations§
impl Freeze for SendinvoiceResponse
impl RefUnwindSafe for SendinvoiceResponse
impl Send for SendinvoiceResponse
impl Sync for SendinvoiceResponse
impl Unpin for SendinvoiceResponse
impl UnwindSafe for SendinvoiceResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for T
impl<T> Downcast for T
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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