pub struct BillingCustomerDiscount {
pub id: Option<String>,
pub active: Option<bool>,
pub percent_off: Option<f64>,
pub applies_to: Option<Vec<String>>,
}
Fields§
§id: Option<String>
§active: Option<bool>
§percent_off: Option<f64>
§applies_to: Option<Vec<String>>
Implementations§
Source§impl BillingCustomerDiscount
impl BillingCustomerDiscount
pub fn new() -> BillingCustomerDiscount
Trait Implementations§
Source§impl Clone for BillingCustomerDiscount
impl Clone for BillingCustomerDiscount
Source§fn clone(&self) -> BillingCustomerDiscount
fn clone(&self) -> BillingCustomerDiscount
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BillingCustomerDiscount
impl Debug for BillingCustomerDiscount
Source§impl Default for BillingCustomerDiscount
impl Default for BillingCustomerDiscount
Source§fn default() -> BillingCustomerDiscount
fn default() -> BillingCustomerDiscount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BillingCustomerDiscount
impl<'de> Deserialize<'de> for BillingCustomerDiscount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BillingCustomerDiscount
impl PartialEq for BillingCustomerDiscount
Source§impl Serialize for BillingCustomerDiscount
impl Serialize for BillingCustomerDiscount
impl StructuralPartialEq for BillingCustomerDiscount
Auto Trait Implementations§
impl Freeze for BillingCustomerDiscount
impl RefUnwindSafe for BillingCustomerDiscount
impl Send for BillingCustomerDiscount
impl Sync for BillingCustomerDiscount
impl Unpin for BillingCustomerDiscount
impl UnwindSafe for BillingCustomerDiscount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more