pub struct Addon {
pub currency: Currency,
pub description: Option<String>,
pub id: String,
pub name: String,
pub proration_factor: f64,
pub quantity: i32,
pub tax: Option<i32>,
pub tax_category: TaxCategory,
pub tax_inclusive: bool,
pub tax_rate: f32,
pub type: Type,
pub unit_price: i32,
}Fields§
§currency: Currency§description: Option<String>§id: String§name: String§proration_factor: f64§quantity: i32§tax: Option<i32>§tax_category: TaxCategory§tax_inclusive: bool§tax_rate: f32§type: Type§unit_price: i32Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Addon
impl<'de> Deserialize<'de> for Addon
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
impl StructuralPartialEq for Addon
Auto Trait Implementations§
impl Freeze for Addon
impl RefUnwindSafe for Addon
impl Send for Addon
impl Sync for Addon
impl Unpin for Addon
impl UnsafeUnpin for Addon
impl UnwindSafe for Addon
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