pub struct WaitDetails {
pub status: Option<i32>,
pub label: Option<String>,
pub description: Option<String>,
pub bolt11: Option<String>,
pub bolt12: Option<String>,
pub partid: Option<u64>,
pub groupid: Option<u64>,
pub payment_hash: Option<Vec<u8>>,
pub in_channel: Option<String>,
pub in_htlc_id: Option<u64>,
pub in_msat: Option<Amount>,
pub out_channel: Option<String>,
}
Fields§
§status: Option<i32>
§label: Option<String>
§description: Option<String>
§bolt11: Option<String>
§bolt12: Option<String>
§partid: Option<u64>
§groupid: Option<u64>
§payment_hash: Option<Vec<u8>>
§in_channel: Option<String>
§in_htlc_id: Option<u64>
§in_msat: Option<Amount>
§out_channel: Option<String>
Implementations§
Source§impl WaitDetails
impl WaitDetails
Sourcepub fn status(&self) -> WaitDetailsStatus
pub fn status(&self) -> WaitDetailsStatus
Returns the enum value of status
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: WaitDetailsStatus)
pub fn set_status(&mut self, value: WaitDetailsStatus)
Sets status
to the provided enum value.
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 description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
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 partid(&self) -> u64
pub fn partid(&self) -> u64
Returns the value of partid
, or the default value if partid
is unset.
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 payment_hash(&self) -> &[u8] ⓘ
pub fn payment_hash(&self) -> &[u8] ⓘ
Returns the value of payment_hash
, or the default value if payment_hash
is unset.
Sourcepub fn in_channel(&self) -> &str
pub fn in_channel(&self) -> &str
Returns the value of in_channel
, or the default value if in_channel
is unset.
Sourcepub fn in_htlc_id(&self) -> u64
pub fn in_htlc_id(&self) -> u64
Returns the value of in_htlc_id
, or the default value if in_htlc_id
is unset.
Sourcepub fn out_channel(&self) -> &str
pub fn out_channel(&self) -> &str
Returns the value of out_channel
, or the default value if out_channel
is unset.
Trait Implementations§
Source§impl Clone for WaitDetails
impl Clone for WaitDetails
Source§fn clone(&self) -> WaitDetails
fn clone(&self) -> WaitDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WaitDetails
impl Debug for WaitDetails
Source§impl Default for WaitDetails
impl Default for WaitDetails
Source§fn default() -> WaitDetails
fn default() -> WaitDetails
Source§impl<'de> Deserialize<'de> for WaitDetails
impl<'de> Deserialize<'de> for WaitDetails
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WaitDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WaitDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Message for WaitDetails
impl Message for WaitDetails
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 WaitDetails
impl PartialEq for WaitDetails
Source§impl Serialize for WaitDetails
impl Serialize for WaitDetails
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 WaitDetails
Auto Trait Implementations§
impl Freeze for WaitDetails
impl RefUnwindSafe for WaitDetails
impl Send for WaitDetails
impl Sync for WaitDetails
impl Unpin for WaitDetails
impl UnwindSafe for WaitDetails
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