pub struct IcalObservance {
pub daylight: bool,
pub from: i32,
pub to: i32,
pub onsets: IcalRecurSet,
}Expand description
One STANDARD or DAYLIGHT observance: when it takes effect, and the
offsets either side of it.
Fields§
§daylight: boolWhether this is a DAYLIGHT observance rather than a STANDARD one.
from: i32The offset in force before this observance takes effect
(TZOFFSETFROM), in seconds east of UTC.
to: i32The offset in force after it (TZOFFSETTO), in seconds east of UTC.
onsets: IcalRecurSetWhen it takes effect, as a recurrence set. Every date in it is local to
from.
Implementations§
Source§impl IcalObservance
impl IcalObservance
Sourcepub fn of_component(component: &IcalComponent<'_>) -> Option<Self>
pub fn of_component(component: &IcalComponent<'_>) -> Option<Self>
Read a STANDARD or DAYLIGHT component into an observance. None for
anything else, and for one that states no offsets.
Trait Implementations§
Source§impl Clone for IcalObservance
impl Clone for IcalObservance
Source§fn clone(&self) -> IcalObservance
fn clone(&self) -> IcalObservance
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 moreSource§impl Debug for IcalObservance
impl Debug for IcalObservance
impl Eq for IcalObservance
Source§impl PartialEq for IcalObservance
impl PartialEq for IcalObservance
impl StructuralPartialEq for IcalObservance
Auto Trait Implementations§
impl Freeze for IcalObservance
impl RefUnwindSafe for IcalObservance
impl Send for IcalObservance
impl Sync for IcalObservance
impl Unpin for IcalObservance
impl UnsafeUnpin for IcalObservance
impl UnwindSafe for IcalObservance
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