pub struct ScheduleConfig {
pub follow_sun: bool,
pub fixed: DaySchedule,
}Fields§
§follow_sun: bool§fixed: DayScheduleImplementations§
Source§impl ScheduleConfig
impl ScheduleConfig
pub fn from_section(section: &Map<String, Value>) -> Self
pub fn resolve( self, location: Option<Location>, moment: LocalMoment, ) -> DaySchedule
Trait Implementations§
Source§impl Clone for ScheduleConfig
impl Clone for ScheduleConfig
impl Copy for ScheduleConfig
Source§impl Debug for ScheduleConfig
impl Debug for ScheduleConfig
Source§impl Default for ScheduleConfig
impl Default for ScheduleConfig
impl Eq for ScheduleConfig
Source§impl PartialEq for ScheduleConfig
impl PartialEq for ScheduleConfig
impl StructuralPartialEq for ScheduleConfig
Auto Trait Implementations§
impl Forget for ScheduleConfig
impl Freeze for ScheduleConfig
impl Move for ScheduleConfig
impl RefUnwindSafe for ScheduleConfig
impl Send for ScheduleConfig
impl Sync for ScheduleConfig
impl Unpin for ScheduleConfig
impl UnsafeUnpin for ScheduleConfig
impl UnwindSafe for ScheduleConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more