pub struct Interval {
pub meta: Bo4eMeta,
pub duration: Option<i32>,
pub unit: Option<TimeUnit>,
}Expand description
A time interval with duration and unit.
German: Intervall
§Example
use bo4e_core::com::Interval;
use bo4e_core::enums::TimeUnit;
let interval = Interval {
duration: Some(15),
unit: Some(TimeUnit::Minute),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
duration: Option<i32>Duration value (Dauer)
unit: Option<TimeUnit>Time unit (Zeiteinheit)
Implementations§
Trait Implementations§
Source§impl Bo4eObject for Interval
impl Bo4eObject for Interval
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 Interval
impl<'de> Deserialize<'de> for Interval
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 Interval
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnsafeUnpin for Interval
impl UnwindSafe for Interval
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