pub struct Contract {Show 13 fields
pub meta: Bo4eMeta,
pub contract_number: Option<String>,
pub description: Option<String>,
pub contract_type: Option<ContractType>,
pub status: Option<ContractStatus>,
pub division: Option<Division>,
pub contract_start: Option<DateTime<Utc>>,
pub contract_end: Option<DateTime<Utc>>,
pub signing_date: Option<DateTime<Utc>>,
pub validity_period: Option<TimePeriod>,
pub conditions: Option<ContractConditions>,
pub parts: Vec<ContractPart>,
pub contract_partner: Option<Box<BusinessPartner>>,
}Expand description
A contract between parties.
German: Vertrag
§Example
use bo4e_core::bo::Contract;
use bo4e_core::enums::{ContractStatus, ContractType, Division};
let contract = Contract {
contract_number: Some("V-2024-001".to_string()),
contract_type: Some(ContractType::EnergySupplyContract),
status: Some(ContractStatus::Active),
division: Some(Division::Electricity),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
contract_number: Option<String>Contract number (Vertragsnummer)
description: Option<String>Description (Beschreibung)
contract_type: Option<ContractType>Type of contract (Vertragsart)
status: Option<ContractStatus>Status of contract (Vertragsstatus)
division: Option<Division>Energy division (Sparte)
contract_start: Option<DateTime<Utc>>Contract start date (Vertragsbeginn)
contract_end: Option<DateTime<Utc>>Contract end date (Vertragsende)
signing_date: Option<DateTime<Utc>>Signing date (Unterzeichnungsdatum)
validity_period: Option<TimePeriod>Validity period (Gueltigkeitszeitraum)
conditions: Option<ContractConditions>Contract conditions (Vertragskonditionen)
parts: Vec<ContractPart>Contract parts (Vertragsteile)
contract_partner: Option<Box<BusinessPartner>>Contracting party (Vertragspartner)
Trait Implementations§
Source§impl Bo4eObject for Contract
impl Bo4eObject for Contract
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 Contract
impl<'de> Deserialize<'de> for Contract
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 Contract
Auto Trait Implementations§
impl Freeze for Contract
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnwindSafe for Contract
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