[][src]Struct stripe_api::resources::core::payout::Payout

pub struct Payout {
    pub id: String,
    pub object: Object,
    pub amount: i64,
    pub arrival_date: i64,
    pub automatic: bool,
    pub balance_transaction: Expandable<BalanceTransaction>,
    pub created: i64,
    pub currency: Currency,
    pub description: String,
    pub destination: Option<Expandable<PayoutDestination>>,
    pub failure_balance_transaction: Option<Expandable<BalanceTransaction>>,
    pub failure_code: Option<PayoutFailureCode>,
    pub failure_message: Option<String>,
    pub livemode: bool,
    pub metadata: HashMap<String, String>,
    pub method: PayoutMethod,
    pub source_type: PayoutSourceType,
    pub statement_descriptor: Option<String>,
    pub status: PayoutStatus,
    pub payout_type: PayoutType,
}

Fields

id: Stringobject: Objectamount: i64arrival_date: i64automatic: boolbalance_transaction: Expandable<BalanceTransaction>created: i64currency: Currencydescription: Stringdestination: Option<Expandable<PayoutDestination>>failure_balance_transaction: Option<Expandable<BalanceTransaction>>failure_code: Option<PayoutFailureCode>failure_message: Option<String>livemode: boolmetadata: HashMap<String, String>method: PayoutMethodsource_type: PayoutSourceTypestatement_descriptor: Option<String>status: PayoutStatuspayout_type: PayoutType

Methods

impl Payout[src]

pub fn create<B: Serialize>(client: &Client, param: B) -> Result<Self>[src]

pub fn retrieve(client: &Client, id: &str) -> Result<Self>[src]

pub fn update<B: Serialize>(client: &Client, id: &str, param: B) -> Result<Self>[src]

pub fn list<B: Serialize>(client: &Client, param: B) -> Result<List<Self>>[src]

pub fn cancel(client: &Client, id: &str) -> Result<Self>[src]

Trait Implementations

impl PartialEq<Payout> for Payout[src]

impl Debug for Payout[src]

impl Serialize for Payout[src]

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

Auto Trait Implementations

impl Unpin for Payout

impl Sync for Payout

impl Send for Payout

impl UnwindSafe for Payout

impl RefUnwindSafe for Payout

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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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