Struct sep2_common::packages::configuration::TimeConfiguration
source · pub struct TimeConfiguration {
pub dst_end_rule: DstRuleType,
pub dst_offset: TimeOffsetType,
pub dst_start_rule: DstRuleType,
pub tz_offset: TimeOffsetType,
}
Available on crate feature
configuration
only.Expand description
Contains attributes related to the configuration of the time service.
Fields§
§dst_end_rule: DstRuleType
Rule to calculate end of daylight savings time in the current year. Result of dstEndRule must be greater than result of dstStartRule.
dst_offset: TimeOffsetType
Daylight savings time offset from local standard time.
dst_start_rule: DstRuleType
Rule to calculate start of daylight savings time in the current year. Result of dstEndRule must be greater than result of dstStartRule.
tz_offset: TimeOffsetType
Local time zone offset from UTCTime. Does not include any daylight savings time offsets.
Trait Implementations§
source§impl Clone for TimeConfiguration
impl Clone for TimeConfiguration
source§fn clone(&self) -> TimeConfiguration
fn clone(&self) -> TimeConfiguration
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 TimeConfiguration
impl Debug for TimeConfiguration
source§impl Default for TimeConfiguration
impl Default for TimeConfiguration
source§fn default() -> TimeConfiguration
fn default() -> TimeConfiguration
Returns the “default value” for a type. Read more
source§impl PartialEq<TimeConfiguration> for TimeConfiguration
impl PartialEq<TimeConfiguration> for TimeConfiguration
source§fn eq(&self, other: &TimeConfiguration) -> bool
fn eq(&self, other: &TimeConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl YaDeserialize for TimeConfiguration
impl YaDeserialize for TimeConfiguration
source§impl YaSerialize for TimeConfiguration
impl YaSerialize for TimeConfiguration
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 TimeConfiguration
impl StructuralEq for TimeConfiguration
impl StructuralPartialEq for TimeConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for TimeConfiguration
impl Send for TimeConfiguration
impl Sync for TimeConfiguration
impl Unpin for TimeConfiguration
impl UnwindSafe for TimeConfiguration
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