pub struct Offer {
pub meta: Bo4eMeta,
pub offer_number: Option<String>,
pub description: Option<String>,
pub status: Option<OfferStatus>,
pub division: Option<Division>,
pub offer_date: Option<DateTime<Utc>>,
pub valid_until: Option<DateTime<Utc>>,
pub delivery_period: Option<TimePeriod>,
pub variants: Vec<OfferVariant>,
pub bidder: Option<Box<BusinessPartner>>,
pub customer: Option<Box<BusinessPartner>>,
pub tender_id: Option<String>,
}Expand description
An offer/quote for energy supply or services.
German: Angebot
§Example
use bo4e_core::bo::Offer;
use bo4e_core::enums::{Division, OfferStatus};
let offer = Offer {
offer_number: Some("A-2024-001".to_string()),
status: Some(OfferStatus::Binding),
division: Some(Division::Electricity),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
offer_number: Option<String>Offer number (Angebotsnummer)
description: Option<String>Description (Beschreibung)
status: Option<OfferStatus>Status of offer (Angebotsstatus)
division: Option<Division>Energy division (Sparte)
offer_date: Option<DateTime<Utc>>Date the offer was created (Angebotsdatum)
valid_until: Option<DateTime<Utc>>Date until which the offer is valid (Gueltig bis)
delivery_period: Option<TimePeriod>Delivery period (Lieferzeitraum)
variants: Vec<OfferVariant>Offer variants (Angebotsvarianten)
bidder: Option<Box<BusinessPartner>>Reference to the bidder/supplier (Anbieter)
customer: Option<Box<BusinessPartner>>Reference to the customer (Kunde)
tender_id: Option<String>Reference to associated tender (Ausschreibung)
Trait Implementations§
Source§impl Bo4eObject for Offer
impl Bo4eObject for Offer
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<'de> Deserialize<'de> for Offer
impl<'de> Deserialize<'de> for Offer
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 Offer
Auto Trait Implementations§
impl Freeze for Offer
impl RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnsafeUnpin for Offer
impl UnwindSafe for Offer
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