[][src]Struct opennode::charge::Payload

pub struct Payload {
    pub amount: u64,
    pub description: Option<String>,
    pub currency: Option<Currency>,
    pub customer_email: Option<String>,
    pub customer_name: Option<String>,
    pub callback_url: Option<String>,
    pub success_url: Option<String>,
    pub auto_settle: Option<String>,
}

Payload is a charge payload.

Fields

amount: u64

Charge's price in satoshis, unless currency parameter is used.

description: Option<String>

Charge's description

currency: Option<Currency>

Charge's currency

customer_email: Option<String>

Customer's email

customer_name: Option<String>

Customer's name

callback_url: Option<String>

URL to receive webhooks

success_url: Option<String>

URL to redirect user after payment

auto_settle: Option<String>

Convert to merchant's currency (needs Bank account enabled)

Methods

impl Payload[src]

pub fn new(a: u64) -> Payload[src]

Trait Implementations

impl Debug for Payload[src]

impl Serialize for Payload[src]

impl<'de> Deserialize<'de> for Payload[src]

Auto Trait Implementations

impl Send for Payload

impl Sync for Payload

impl Unpin for Payload

impl UnwindSafe for Payload

impl RefUnwindSafe for Payload

Blanket Implementations

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

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

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]