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