pub struct SendpayResponse {Show 17 fields
pub id: u64,
pub groupid: Option<u64>,
pub payment_hash: Vec<u8>,
pub status: i32,
pub amount_msat: Option<Amount>,
pub destination: Option<Vec<u8>>,
pub created_at: u64,
pub amount_sent_msat: Option<Amount>,
pub label: Option<String>,
pub partid: Option<u64>,
pub bolt11: Option<String>,
pub bolt12: Option<String>,
pub payment_preimage: Option<Vec<u8>>,
pub message: Option<String>,
pub completed_at: Option<u64>,
pub created_index: Option<u64>,
pub updated_index: Option<u64>,
}
Fields§
§id: u64
§groupid: Option<u64>
§payment_hash: Vec<u8>
§status: i32
§amount_msat: Option<Amount>
§destination: Option<Vec<u8>>
§created_at: u64
§amount_sent_msat: Option<Amount>
§label: Option<String>
§partid: Option<u64>
§bolt11: Option<String>
§bolt12: Option<String>
§payment_preimage: Option<Vec<u8>>
§message: Option<String>
§completed_at: Option<u64>
§created_index: Option<u64>
§updated_index: Option<u64>
Implementations§
Source§impl SendpayResponse
impl SendpayResponse
Sourcepub fn groupid(&self) -> u64
pub fn groupid(&self) -> u64
Returns the value of groupid
, or the default value if groupid
is unset.
Sourcepub fn status(&self) -> SendpayStatus
pub fn status(&self) -> SendpayStatus
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: SendpayStatus)
pub fn set_status(&mut self, value: SendpayStatus)
Sets status
to the provided enum value.
Sourcepub fn destination(&self) -> &[u8] ⓘ
pub fn destination(&self) -> &[u8] ⓘ
Returns the value of destination
, or the default value if destination
is unset.
Sourcepub fn label(&self) -> &str
pub fn label(&self) -> &str
Returns the value of label
, or the default value if label
is unset.
Sourcepub fn partid(&self) -> u64
pub fn partid(&self) -> u64
Returns the value of partid
, or the default value if partid
is unset.
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 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 message(&self) -> &str
pub fn message(&self) -> &str
Returns the value of message
, or the default value if message
is unset.
Sourcepub fn completed_at(&self) -> u64
pub fn completed_at(&self) -> u64
Returns the value of completed_at
, or the default value if completed_at
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 SendpayResponse
impl Clone for SendpayResponse
Source§fn clone(&self) -> SendpayResponse
fn clone(&self) -> SendpayResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SendpayResponse
impl Debug for SendpayResponse
Source§impl Default for SendpayResponse
impl Default for SendpayResponse
Source§fn default() -> SendpayResponse
fn default() -> SendpayResponse
Source§impl<'de> Deserialize<'de> for SendpayResponse
impl<'de> Deserialize<'de> for SendpayResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SendpayResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SendpayResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Message for SendpayResponse
impl Message for SendpayResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
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>
self
.Source§impl PartialEq for SendpayResponse
impl PartialEq for SendpayResponse
Source§impl Serialize for SendpayResponse
impl Serialize for SendpayResponse
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,
impl StructuralPartialEq for SendpayResponse
Auto Trait Implementations§
impl Freeze for SendpayResponse
impl RefUnwindSafe for SendpayResponse
impl Send for SendpayResponse
impl Sync for SendpayResponse
impl Unpin for SendpayResponse
impl UnwindSafe for SendpayResponse
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
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>
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>
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>
T
in a tonic::Request