pub struct DiscountAmountAndType1 {
pub tp: Option<DiscountAmountType1Choice>,
pub amt: ActiveOrHistoricCurrencyAndAmount,
}Fields§
§tp: Option<DiscountAmountType1Choice>§amt: ActiveOrHistoricCurrencyAndAmountImplementations§
Source§impl DiscountAmountAndType1
impl DiscountAmountAndType1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for DiscountAmountAndType1
impl Clone for DiscountAmountAndType1
Source§fn clone(&self) -> DiscountAmountAndType1
fn clone(&self) -> DiscountAmountAndType1
Returns a duplicate 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 DiscountAmountAndType1
impl Debug for DiscountAmountAndType1
Source§impl Default for DiscountAmountAndType1
impl Default for DiscountAmountAndType1
Source§fn default() -> DiscountAmountAndType1
fn default() -> DiscountAmountAndType1
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiscountAmountAndType1
impl<'de> Deserialize<'de> for DiscountAmountAndType1
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 DiscountAmountAndType1
impl PartialEq for DiscountAmountAndType1
Source§impl Serialize for DiscountAmountAndType1
impl Serialize for DiscountAmountAndType1
impl StructuralPartialEq for DiscountAmountAndType1
Auto Trait Implementations§
impl Freeze for DiscountAmountAndType1
impl RefUnwindSafe for DiscountAmountAndType1
impl Send for DiscountAmountAndType1
impl Sync for DiscountAmountAndType1
impl Unpin for DiscountAmountAndType1
impl UnwindSafe for DiscountAmountAndType1
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