[][src]Struct libstripe::resources::billing::discounts::Discount

pub struct Discount {
    pub object: Object,
    pub coupon: Coupon,
    pub customer: String,
    pub end: i64,
    pub start: i64,
    pub subscription: Option<String>,
}

Fields

object: Objectcoupon: Couponcustomer: Stringend: i64start: i64subscription: Option<String>

Methods

impl Discount[src]

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

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

Trait Implementations

impl PartialEq<Discount> for Discount[src]

impl Debug for Discount[src]

impl Serialize for Discount[src]

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

Auto Trait Implementations

impl Send for Discount

impl Sync for Discount

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