Struct LnurlWithdrawRequest
pub struct LnurlWithdrawRequest {
pub callback: String,
pub k1: String,
pub default_description: String,
pub min_withdrawable: Amount,
pub max_withdrawable: Amount,
pub pay_link: Option<String>,
}Expand description
LUD-03 LNURL-withdraw request.
Fields§
§callback: StringThe URL which will accept the withdraw request parameters.
k1: StringA secret string which authorizes a withdrawal.
WARNING: If leaked, anyone with this string can make a withdrawal.
default_description: StringA default description to be included in the invoice’s description field.
min_withdrawable: AmountThe minimum amount that can be withdrawn.
max_withdrawable: AmountThe maximum amount that can be withdrawn.
pay_link: Option<String>(LUD-19) An optional payment LNURL string. Should be a valid LNURL-pay endpoint. Caller is responsible for parsing and validating compatibility with LNURL-pay.
Implementations§
§impl LnurlWithdrawRequest
impl LnurlWithdrawRequest
pub fn try_from_wire(
wire: LnurlWithdrawRequestWire,
) -> Result<LnurlWithdrawRequest, Error>
pub fn try_from_wire( wire: LnurlWithdrawRequestWire, ) -> Result<LnurlWithdrawRequest, Error>
Convert an LNURL withdraw request from the wire format to the internal format.
Validates min_withdrawable and max_withdrawable consistency.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LnurlWithdrawRequest
impl RefUnwindSafe for LnurlWithdrawRequest
impl Send for LnurlWithdrawRequest
impl Sync for LnurlWithdrawRequest
impl Unpin for LnurlWithdrawRequest
impl UnwindSafe for LnurlWithdrawRequest
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