pub struct TransitionRule {
pub kind: RuleKind,
pub day: i32,
pub week: i32,
pub mon: i32,
pub time: i32,
}Expand description
Specifies when a DST transition occurs within a year.
Fields§
§kind: RuleKindWhich interpretation day takes.
day: i32Julian day (1-365), day-of-year (0-365), or day-of-week (0 = Sunday).
week: i32Week of month (1-5); only meaningful for RuleKind::MonthWeekDay.
mon: i32Month (1-12); only meaningful for RuleKind::MonthWeekDay.
time: i32Seconds after midnight (default 7200 = 02:00:00).
Trait Implementations§
Source§impl Clone for TransitionRule
impl Clone for TransitionRule
Source§fn clone(&self) -> TransitionRule
fn clone(&self) -> TransitionRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransitionRule
Source§impl Debug for TransitionRule
impl Debug for TransitionRule
impl Eq for TransitionRule
Source§impl PartialEq for TransitionRule
impl PartialEq for TransitionRule
Source§fn eq(&self, other: &TransitionRule) -> bool
fn eq(&self, other: &TransitionRule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransitionRule
Auto Trait Implementations§
impl Freeze for TransitionRule
impl RefUnwindSafe for TransitionRule
impl Send for TransitionRule
impl Sync for TransitionRule
impl Unpin for TransitionRule
impl UnsafeUnpin for TransitionRule
impl UnwindSafe for TransitionRule
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