Struct cashweb_payments::bip70::PaymentDetails[][src]

pub struct PaymentDetails {
    pub network: Option<String>,
    pub outputs: Vec<Output>,
    pub time: u64,
    pub expires: Option<u64>,
    pub memo: Option<String>,
    pub payment_url: Option<String>,
    pub merchant_data: Option<Vec<u8>>,
}

Fields

network: Option<String>

"main" or "test"

outputs: Vec<Output>

Where payment should be sent

time: u64

Timestamp; when payment request created

expires: Option<u64>

Timestamp; when this request should be considered invalid

memo: Option<String>

Human-readable description of request for the customer

payment_url: Option<String>

URL to send Payment and get PaymentACK

merchant_data: Option<Vec<u8>>

Arbitrary data to include in the Payment message

Implementations

impl PaymentDetails[src]

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

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

pub fn expires(&self) -> u64[src]

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

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

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

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

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

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

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

Trait Implementations

impl Clone for PaymentDetails[src]

impl Debug for PaymentDetails[src]

impl Default for PaymentDetails[src]

impl Message for PaymentDetails[src]

impl PartialEq<PaymentDetails> for PaymentDetails[src]

impl StructuralPartialEq for PaymentDetails[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.