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: u64
The minimum amount, in millisats, that this LNURL-withdraw endpoint accepts
max_withdrawable: u64
The 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 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 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.§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> 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