pub struct PrepareSendRequest {
pub destination: String,
pub amount: Option<PayAmount>,
}
Expand description
An argument when calling crate::sdk::LiquidSdk::prepare_send_payment.
Fields§
§destination: String
The destination we intend to pay to. Supports BIP21 URIs, BOLT11 invoices, BOLT12 offers and Liquid addresses
amount: Option<PayAmount>
Should only be set when paying directly onchain or to a BIP21 URI where no amount is specified, or when the caller wishes to drain
Trait Implementations§
Source§impl Clone for PrepareSendRequest
impl Clone for PrepareSendRequest
Source§fn clone(&self) -> PrepareSendRequest
fn clone(&self) -> PrepareSendRequest
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 moreSource§impl Debug for PrepareSendRequest
impl Debug for PrepareSendRequest
Source§impl IntoDart for PrepareSendRequest
impl IntoDart for PrepareSendRequest
Source§impl IntoIntoDart<PrepareSendRequest> for PrepareSendRequest
impl IntoIntoDart<PrepareSendRequest> for PrepareSendRequest
fn into_into_dart(self) -> PrepareSendRequest
Source§impl Serialize for PrepareSendRequest
impl Serialize for PrepareSendRequest
impl IntoDartExceptPrimitive for PrepareSendRequest
Auto Trait Implementations§
impl Freeze for PrepareSendRequest
impl Send for PrepareSendRequest
impl Sync for PrepareSendRequest
impl RefUnwindSafe for PrepareSendRequest
impl Unpin for PrepareSendRequest
impl UnwindSafe for PrepareSendRequest
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