pub struct BundleContract {
pub meta: Bo4eMeta,
pub bundle_contract_number: Option<String>,
pub description: Option<String>,
pub status: Option<ContractStatus>,
pub division: Option<Division>,
pub contract_start: Option<DateTime<Utc>>,
pub contract_end: Option<DateTime<Utc>>,
pub validity_period: Option<TimePeriod>,
pub individual_contracts: Vec<Box<Contract>>,
pub contract_partner: Option<Box<BusinessPartner>>,
}Expand description
A bundle contract that combines multiple individual contracts.
German: Buendelvertrag
§Example
use bo4e_core::bo::BundleContract;
use bo4e_core::enums::{ContractStatus, Division};
let bundle = BundleContract {
bundle_contract_number: Some("BV-2024-001".to_string()),
status: Some(ContractStatus::Active),
division: Some(Division::Electricity),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
bundle_contract_number: Option<String>Bundle contract number (Buendelvertragsnummer)
description: Option<String>Description (Beschreibung)
status: Option<ContractStatus>Status of bundle contract (Vertragsstatus)
division: Option<Division>Energy division (Sparte)
contract_start: Option<DateTime<Utc>>Bundle contract start date (Vertragsbeginn)
contract_end: Option<DateTime<Utc>>Bundle contract end date (Vertragsende)
validity_period: Option<TimePeriod>Validity period (Gueltigkeitszeitraum)
individual_contracts: Vec<Box<Contract>>Individual contracts in this bundle (Einzelvertraege)
contract_partner: Option<Box<BusinessPartner>>Contracting party (Vertragspartner)
Trait Implementations§
Source§impl Bo4eObject for BundleContract
impl Bo4eObject for BundleContract
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 BundleContract
impl Clone for BundleContract
Source§fn clone(&self) -> BundleContract
fn clone(&self) -> BundleContract
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 BundleContract
impl Debug for BundleContract
Source§impl Default for BundleContract
impl Default for BundleContract
Source§fn default() -> BundleContract
fn default() -> BundleContract
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BundleContract
impl<'de> Deserialize<'de> for BundleContract
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 BundleContract
impl PartialEq for BundleContract
Source§impl Serialize for BundleContract
impl Serialize for BundleContract
impl StructuralPartialEq for BundleContract
Auto Trait Implementations§
impl Freeze for BundleContract
impl RefUnwindSafe for BundleContract
impl Send for BundleContract
impl Sync for BundleContract
impl Unpin for BundleContract
impl UnwindSafe for BundleContract
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