Struct LnUrlWithdrawRequestData    
pub struct LnUrlWithdrawRequestData {
    pub callback: String,
    pub k1: String,
    pub default_description: String,
    pub min_withdrawable: u64,
    pub max_withdrawable: u64,
}Expand description
Wrapped in a [LnUrlWithdraw], this is the result of parse when given a LNURL-withdraw endpoint.
It represents the endpoint’s parameters for the LNURL workflow.
Fields§
§callback: String§k1: String§default_description: String§min_withdrawable: u64The minimum amount, in millisats, that this LNURL-withdraw endpoint accepts
max_withdrawable: u64The maximum amount, in millisats, that this LNURL-withdraw endpoint accepts
Implementations§
§impl LnUrlWithdrawRequestData
 
impl LnUrlWithdrawRequestData
pub fn min_withdrawable_sats(&self) -> u64
pub fn min_withdrawable_sats(&self) -> u64
The minimum amount, in sats, accepted by this LNURL-withdraw endpoint
pub fn max_withdrawable_sats(&self) -> u64
pub fn max_withdrawable_sats(&self) -> u64
The maximum amount, in sats, accepted by this LNURL-withdraw endpoint
Trait Implementations§
§impl Clone for LnUrlWithdrawRequestData
 
impl Clone for LnUrlWithdrawRequestData
§fn clone(&self) -> LnUrlWithdrawRequestData
 
fn clone(&self) -> LnUrlWithdrawRequestData
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 more§impl Debug for LnUrlWithdrawRequestData
 
impl Debug for LnUrlWithdrawRequestData
§impl<'de> Deserialize<'de> for LnUrlWithdrawRequestData
 
impl<'de> Deserialize<'de> for LnUrlWithdrawRequestData
§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<LnUrlWithdrawRequestData, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<LnUrlWithdrawRequestData, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for LnUrlWithdrawRequestData
 
impl Serialize for LnUrlWithdrawRequestData
§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
Auto Trait Implementations§
impl Freeze for LnUrlWithdrawRequestData
impl RefUnwindSafe for LnUrlWithdrawRequestData
impl Send for LnUrlWithdrawRequestData
impl Sync for LnUrlWithdrawRequestData
impl Unpin for LnUrlWithdrawRequestData
impl UnwindSafe for LnUrlWithdrawRequestData
Blanket Implementations§
§impl<T> AnySync for T
 
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
§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,
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
 
fn instrument(self, span: Span) -> 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