pub struct OfferVariant {
pub meta: Bo4eMeta,
pub offer_status: Option<OfferStatus>,
pub creation_date: Option<String>,
pub binding_deadline: Option<String>,
pub parts_count: Option<i32>,
pub total_quantity_value: Option<f64>,
pub total_cost_value: Option<f64>,
}Expand description
Variant of an offer with different calculation options.
German: Angebotsvariante
§Example
use bo4e_core::com::OfferVariant;
use bo4e_core::enums::OfferStatus;
let variant = OfferVariant {
offer_status: Some(OfferStatus::NonBinding),
creation_date: Some("2024-01-15T10:00:00+01:00".to_string()),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
offer_status: Option<OfferStatus>Status of the offer (Angebotsstatus)
creation_date: Option<String>Creation date of the offer variant (Erstellungsdatum)
binding_deadline: Option<String>Binding deadline - until this time the offer variant is valid (Bindefrist)
parts_count: Option<i32>Number of offer parts in this variant
total_quantity_value: Option<f64>Total quantity value across all offer parts (simplified - Gesamtmenge)
total_cost_value: Option<f64>Total cost value across all offer parts (simplified - Gesamtkosten)
Trait Implementations§
Source§impl Bo4eObject for OfferVariant
impl Bo4eObject for OfferVariant
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 OfferVariant
impl Clone for OfferVariant
Source§fn clone(&self) -> OfferVariant
fn clone(&self) -> OfferVariant
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 OfferVariant
impl Debug for OfferVariant
Source§impl Default for OfferVariant
impl Default for OfferVariant
Source§fn default() -> OfferVariant
fn default() -> OfferVariant
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OfferVariant
impl<'de> Deserialize<'de> for OfferVariant
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 OfferVariant
impl PartialEq for OfferVariant
Source§impl Serialize for OfferVariant
impl Serialize for OfferVariant
impl StructuralPartialEq for OfferVariant
Auto Trait Implementations§
impl Freeze for OfferVariant
impl RefUnwindSafe for OfferVariant
impl Send for OfferVariant
impl Sync for OfferVariant
impl Unpin for OfferVariant
impl UnsafeUnpin for OfferVariant
impl UnwindSafe for OfferVariant
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