pub struct Bonus {
pub meta: Bo4eMeta,
pub description: Option<String>,
pub value: Option<f64>,
pub currency: Option<Currency>,
pub conditions: Option<String>,
pub is_one_time: Option<bool>,
}Expand description
A bonus or incentive payment.
German: Bonus
§Example
use bo4e_core::com::Bonus;
let bonus = Bonus {
description: Some("Neukundenbonus".to_string()),
value: Some(100.0),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
description: Option<String>Description/name of the bonus (Bezeichnung)
value: Option<f64>Bonus value (Wert)
currency: Option<Currency>Currency (Waehrung)
conditions: Option<String>Conditions for receiving the bonus (Bedingungen)
is_one_time: Option<bool>Whether the bonus is a one-time payment (Einmalig)
Trait Implementations§
Source§impl Bo4eObject for Bonus
impl Bo4eObject for Bonus
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 Bonus
impl<'de> Deserialize<'de> for Bonus
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 Bonus
Auto Trait Implementations§
impl Freeze for Bonus
impl RefUnwindSafe for Bonus
impl Send for Bonus
impl Sync for Bonus
impl Unpin for Bonus
impl UnsafeUnpin for Bonus
impl UnwindSafe for Bonus
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