pub struct PayOnchainRequest {
pub cid: ClientPaymentId,
pub address: Address<NetworkUnchecked>,
pub amount: Amount,
pub priority: ConfirmationPriority,
pub note: Option<BoundedNote>,
}Fields§
§cid: ClientPaymentIdThe identifier to use for this payment.
address: Address<NetworkUnchecked>The address we want to send funds to.
amount: AmountHow much Bitcoin we want to send.
priority: ConfirmationPriorityHow quickly we want our transaction to be confirmed. The higher the priority, the more fees we will pay.
note: Option<BoundedNote>An optional personal note for this payment.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PayOnchainRequest
impl<'de> Deserialize<'de> for PayOnchainRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PayOnchainRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PayOnchainRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PayOnchainRequest
impl Serialize for PayOnchainRequest
Source§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 PayOnchainRequest
impl RefUnwindSafe for PayOnchainRequest
impl Send for PayOnchainRequest
impl Sync for PayOnchainRequest
impl Unpin for PayOnchainRequest
impl UnsafeUnpin for PayOnchainRequest
impl UnwindSafe for PayOnchainRequest
Blanket Implementations§
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