pub struct GongConfig {
pub timezone: Tz,
pub holidays: Vec<Holiday>,
pub workday_milestones: Vec<NaiveTime>,
}
Expand description
Configuration for calendar-based GongEvent
s.
Fields§
§timezone: Tz
The timezone the engine should operate in for calendar calculations. Defaults to UTC. Uses the string names from the IANA Time Zone Database (e.g., “America/New_York”).
holidays: Vec<Holiday>
A list of custom holidays the GongWatcher should be aware of.
workday_milestones: Vec<NaiveTime>
A list of custom times for workday-related gongs.
Trait Implementations§
Source§impl Clone for GongConfig
impl Clone for GongConfig
Source§fn clone(&self) -> GongConfig
fn clone(&self) -> GongConfig
Returns a duplicate 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 GongConfig
impl Debug for GongConfig
Source§impl Default for GongConfig
impl Default for GongConfig
Source§impl<'de> Deserialize<'de> for GongConfig
impl<'de> Deserialize<'de> for GongConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GongConfig
impl RefUnwindSafe for GongConfig
impl Send for GongConfig
impl Sync for GongConfig
impl Unpin for GongConfig
impl UnwindSafe for GongConfig
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