pub struct ContractPart {
pub meta: Bo4eMeta,
pub contract_part_start: Option<String>,
pub contract_part_end: Option<String>,
pub location_id: Option<String>,
pub fixed_quantity_value: Option<f64>,
pub minimum_quantity_value: Option<f64>,
pub maximum_quantity_value: Option<f64>,
}Expand description
Part of a contract linking a service to a location.
Used to represent a contractual service in relation to a location (market or metering location). Contracts for multiple locations are modeled with multiple contract parts.
German: Vertragsteil
§Example
use bo4e_core::com::ContractPart;
let part = ContractPart {
location_id: Some("DE0001234567890123456789012345678".to_string()),
contract_part_start: Some("2024-01-01T00:00:00+01:00".to_string()),
contract_part_end: Some("2024-12-31T23:59:59+01:00".to_string()),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
contract_part_start: Option<String>Start of the contract part validity (inclusive) (Vertragsteilbeginn)
contract_part_end: Option<String>End of the contract part validity (exclusive) (Vertragsteilende)
location_id: Option<String>Identifier for the market or metering location belonging to this contract part (Lokation)
fixed_quantity_value: Option<f64>Contractually fixed consumption quantity (Vertraglich fixierte Menge)
minimum_quantity_value: Option<f64>Minimum consumption quantity (inclusive) (Minimale Abnahmemenge)
maximum_quantity_value: Option<f64>Maximum consumption quantity (exclusive) (Maximale Abnahmemenge)
Trait Implementations§
Source§impl Bo4eObject for ContractPart
impl Bo4eObject for ContractPart
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 ContractPart
impl Clone for ContractPart
Source§fn clone(&self) -> ContractPart
fn clone(&self) -> ContractPart
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 ContractPart
impl Debug for ContractPart
Source§impl Default for ContractPart
impl Default for ContractPart
Source§fn default() -> ContractPart
fn default() -> ContractPart
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContractPart
impl<'de> Deserialize<'de> for ContractPart
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 ContractPart
impl PartialEq for ContractPart
Source§impl Serialize for ContractPart
impl Serialize for ContractPart
impl StructuralPartialEq for ContractPart
Auto Trait Implementations§
impl Freeze for ContractPart
impl RefUnwindSafe for ContractPart
impl Send for ContractPart
impl Sync for ContractPart
impl Unpin for ContractPart
impl UnsafeUnpin for ContractPart
impl UnwindSafe for ContractPart
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