pub struct MarginPrice {
pub meta: Bo4eMeta,
pub value: Option<f64>,
pub currency: Option<Currency>,
pub reference_unit: Option<Unit>,
pub description: Option<String>,
}Expand description
A margin price component.
German: Margenpreis
§Example
use bo4e_core::com::MarginPrice;
let margin = MarginPrice {
value: Some(0.5),
description: Some("Vertriebsmarge".to_string()),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
value: Option<f64>Margin value (Wert)
currency: Option<Currency>Currency (Waehrung)
reference_unit: Option<Unit>Reference unit (Bezugseinheit)
description: Option<String>Description (Beschreibung)
Trait Implementations§
Source§impl Bo4eObject for MarginPrice
impl Bo4eObject for MarginPrice
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 MarginPrice
impl Clone for MarginPrice
Source§fn clone(&self) -> MarginPrice
fn clone(&self) -> MarginPrice
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 MarginPrice
impl Debug for MarginPrice
Source§impl Default for MarginPrice
impl Default for MarginPrice
Source§fn default() -> MarginPrice
fn default() -> MarginPrice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MarginPrice
impl<'de> Deserialize<'de> for MarginPrice
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 MarginPrice
impl PartialEq for MarginPrice
Source§impl Serialize for MarginPrice
impl Serialize for MarginPrice
impl StructuralPartialEq for MarginPrice
Auto Trait Implementations§
impl Freeze for MarginPrice
impl RefUnwindSafe for MarginPrice
impl Send for MarginPrice
impl Sync for MarginPrice
impl Unpin for MarginPrice
impl UnwindSafe for MarginPrice
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