Struct cashweb_payments::bip70::Payment[][src]

pub struct Payment {
    pub merchant_data: Option<Vec<u8>>,
    pub transactions: Vec<Vec<u8>>,
    pub refund_to: Vec<Output>,
    pub memo: Option<String>,
}

Fields

merchant_data: Option<Vec<u8>>

From PaymentDetails.merchant_data

transactions: Vec<Vec<u8>>

Signed transactions that satisfy PaymentDetails.outputs

refund_to: Vec<Output>

Where to send refunds, if a refund is necessary

memo: Option<String>

Human-readable message for the merchant

Implementations

impl Payment[src]

pub fn merchant_data(&self) -> &[u8][src]

Returns the value of merchant_data, or the default value if merchant_data is unset.

pub fn memo(&self) -> &str[src]

Returns the value of memo, or the default value if memo is unset.

Trait Implementations

impl Clone for Payment[src]

impl Debug for Payment[src]

impl Default for Payment[src]

impl Message for Payment[src]

impl PartialEq<Payment> for Payment[src]

impl StructuralPartialEq for Payment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.