pub struct RuleInfo {
pub from_year: Year,
pub to_year: Option<Year>,
pub month: Month,
pub day: DaySpec,
pub time: i64,
pub time_type: TimeType,
pub time_to_add: i64,
pub letters: Option<String>,
}Expand description
An owned rule definition line.
This mimics the Rule struct in the line module, only its uses owned
Strings instead of string slices, and has had some pre-processing
applied to it.
Fields§
§from_year: YearThe year that this rule starts applying.
to_year: Option<Year>The year that this rule finishes applying, inclusive, or None if
it applies up until the end of this timespan.
month: MonthThe month it applies on.
day: DaySpecThe day it applies on.
time: i64The exact time it applies on.
time_type: TimeTypeThe type of time that time is.
time_to_add: i64The amount of time to save.
letters: Option<String>Any extra letters that should be added to this time zone’s
abbreviation, in place of %s.
Implementations§
Trait Implementations§
impl StructuralPartialEq for RuleInfo
Auto Trait Implementations§
impl Freeze for RuleInfo
impl RefUnwindSafe for RuleInfo
impl Send for RuleInfo
impl Sync for RuleInfo
impl Unpin for RuleInfo
impl UnwindSafe for RuleInfo
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