Struct sep2_common::packages::types::DateTimeInterval
source · pub struct DateTimeInterval {
pub duration: Uint32,
pub start: TimeType,
}
Expand description
Interval of date and time.
Fields§
§duration: Uint32
Duration of the interval, in seconds.
start: TimeType
Date and time of the start of the interval.
Trait Implementations§
source§impl Clone for DateTimeInterval
impl Clone for DateTimeInterval
source§fn clone(&self) -> DateTimeInterval
fn clone(&self) -> DateTimeInterval
Returns a copy 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 DateTimeInterval
impl Debug for DateTimeInterval
source§impl Default for DateTimeInterval
impl Default for DateTimeInterval
source§fn default() -> DateTimeInterval
fn default() -> DateTimeInterval
Returns the “default value” for a type. Read more
source§impl Ord for DateTimeInterval
impl Ord for DateTimeInterval
source§fn cmp(&self, other: &DateTimeInterval) -> Ordering
fn cmp(&self, other: &DateTimeInterval) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DateTimeInterval> for DateTimeInterval
impl PartialEq<DateTimeInterval> for DateTimeInterval
source§fn eq(&self, other: &DateTimeInterval) -> bool
fn eq(&self, other: &DateTimeInterval) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DateTimeInterval> for DateTimeInterval
impl PartialOrd<DateTimeInterval> for DateTimeInterval
source§fn partial_cmp(&self, other: &DateTimeInterval) -> Option<Ordering>
fn partial_cmp(&self, other: &DateTimeInterval) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl YaDeserialize for DateTimeInterval
impl YaDeserialize for DateTimeInterval
source§impl YaSerialize for DateTimeInterval
impl YaSerialize for DateTimeInterval
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl Eq for DateTimeInterval
impl StructuralEq for DateTimeInterval
impl StructuralPartialEq for DateTimeInterval
Auto Trait Implementations§
impl RefUnwindSafe for DateTimeInterval
impl Send for DateTimeInterval
impl Sync for DateTimeInterval
impl Unpin for DateTimeInterval
impl UnwindSafe for DateTimeInterval
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