pub struct PriceGuarantee {
pub meta: Bo4eMeta,
pub guarantee_type: Option<PriceGuaranteeType>,
pub valid_from: Option<DateTime<Utc>>,
pub valid_until: Option<DateTime<Utc>>,
pub description: Option<String>,
}Expand description
A price guarantee specifying which price components are fixed.
German: Preisgarantie
§Example
use bo4e_core::com::PriceGuarantee;
use bo4e_core::enums::PriceGuaranteeType;
let guarantee = PriceGuarantee {
guarantee_type: Some(PriceGuaranteeType::AllComponentsGross),
description: Some("12-month price guarantee".to_string()),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
guarantee_type: Option<PriceGuaranteeType>Type of price guarantee (Preisgarantietyp)
valid_from: Option<DateTime<Utc>>Start of validity period (Zeitliche Gültigkeit - Von)
valid_until: Option<DateTime<Utc>>End of validity period (Zeitliche Gültigkeit - Bis)
description: Option<String>Description of the guarantee (Beschreibung)
Trait Implementations§
Source§impl Bo4eObject for PriceGuarantee
impl Bo4eObject for PriceGuarantee
Source§fn type_name_german() -> &'static str
fn type_name_german() -> &'static str
Returns the German type name as used in the
_typ field. Read moreSource§fn type_name_english() -> &'static str
fn type_name_english() -> &'static str
Returns the English type name. Read more
Source§impl Clone for PriceGuarantee
impl Clone for PriceGuarantee
Source§fn clone(&self) -> PriceGuarantee
fn clone(&self) -> PriceGuarantee
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 PriceGuarantee
impl Debug for PriceGuarantee
Source§impl Default for PriceGuarantee
impl Default for PriceGuarantee
Source§fn default() -> PriceGuarantee
fn default() -> PriceGuarantee
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PriceGuarantee
impl<'de> Deserialize<'de> for PriceGuarantee
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 PriceGuarantee
impl PartialEq for PriceGuarantee
Source§impl Serialize for PriceGuarantee
impl Serialize for PriceGuarantee
impl StructuralPartialEq for PriceGuarantee
Auto Trait Implementations§
impl Freeze for PriceGuarantee
impl RefUnwindSafe for PriceGuarantee
impl Send for PriceGuarantee
impl Sync for PriceGuarantee
impl Unpin for PriceGuarantee
impl UnwindSafe for PriceGuarantee
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