pub struct PayOnchainPreflightRequest {
pub address: Address<NetworkUnchecked>,
pub amount: Amount,
pub client_payment_id: Option<ClientPaymentId>,
}Expand description
A request to preflight an on-chain send.
Fields§
§address: Address<NetworkUnchecked>The Bitcoin address to send to. Must be valid for the network this wallet is configured for.
amount: AmountThe amount we will send.
client_payment_id: Option<ClientPaymentId>The client_payment_id the send will use, if known. A preflight for
an id that was already sent is rejected.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PayOnchainPreflightRequest
impl<'de> Deserialize<'de> for PayOnchainPreflightRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PayOnchainPreflightRequest> for PayOnchainPreflightRequest
impl From<PayOnchainPreflightRequest> for PayOnchainPreflightRequest
Source§fn from(req: PayOnchainPreflightRequest) -> Self
fn from(req: PayOnchainPreflightRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PayOnchainPreflightRequest
impl RefUnwindSafe for PayOnchainPreflightRequest
impl Send for PayOnchainPreflightRequest
impl Sync for PayOnchainPreflightRequest
impl Unpin for PayOnchainPreflightRequest
impl UnsafeUnpin for PayOnchainPreflightRequest
impl UnwindSafe for PayOnchainPreflightRequest
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