pub struct WithdrawLnurlRequest {
pub lnurl: Option<String>,
pub withdraw_request: Option<LnurlWithdrawRequest>,
pub amount: Option<Amount>,
pub description: Option<String>,
pub personal_note: Option<String>,
}Expand description
A request to withdraw from an LNURL-withdraw endpoint.
Fields§
§lnurl: Option<String>The LNURL to withdraw from.
Exactly one of lnurl or withdraw_request should be provided.
withdraw_request: Option<LnurlWithdrawRequest>The LNURL withdraw request to use.
Exactly one of lnurl or withdraw_request should be provided.
amount: Option<Amount>The amount to withdraw. This value must satisfy the minimum and maximum limits set by the LNURL endpoint.
If None, the maximum amount will be withdrawn.
description: Option<String>An optional description to encode into the withdrawal invoice, visible to the LNURL endpoint.
If None, the description encoded will be the one specified by the
LNURL endpoint, if any.
personal_note: Option<String>An optional personal note for this withdrawal.
The LNURL endpoint will not see this note.
If provided, it must be non-empty and no longer than 200 chars / 512 UTF-8 bytes.
Auto Trait Implementations§
impl Freeze for WithdrawLnurlRequest
impl RefUnwindSafe for WithdrawLnurlRequest
impl Send for WithdrawLnurlRequest
impl Sync for WithdrawLnurlRequest
impl Unpin for WithdrawLnurlRequest
impl UnwindSafe for WithdrawLnurlRequest
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