pub struct PaymentToken {
pub custom_instructions: PaymentCustomInstructions,
pub transaction: Vec<u8>,
pub amount: u64,
pub output_index: Option<u32>,
}Expand description
A PeerPay payment token sent to a recipient’s payment_inbox.
Serializes to camelCase JSON matching the TS PaymentToken wire format:
transactionis a number array (Vec) on the wire outputIndexis omitted at creation time (None); defaulted to 0 at accept time
Fields§
§custom_instructions: PaymentCustomInstructions§transaction: Vec<u8>Raw transaction bytes.
amount: u64§output_index: Option<u32>Only present after being set by the sender; defaults to 0 at accept time.
Trait Implementations§
Source§impl Clone for PaymentToken
impl Clone for PaymentToken
Source§fn clone(&self) -> PaymentToken
fn clone(&self) -> PaymentToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PaymentToken
impl Debug for PaymentToken
Source§impl<'de> Deserialize<'de> for PaymentToken
impl<'de> Deserialize<'de> for PaymentToken
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
Auto Trait Implementations§
impl Freeze for PaymentToken
impl RefUnwindSafe for PaymentToken
impl Send for PaymentToken
impl Sync for PaymentToken
impl Unpin for PaymentToken
impl UnsafeUnpin for PaymentToken
impl UnwindSafe for PaymentToken
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