pub struct CalendarConfig {
pub enabled: bool,
pub timezone: String,
pub default_reminder_minutes: Vec<u32>,
pub alarm_channels: Vec<String>,
pub journal_sync: String,
pub system_calendar: bool,
pub archive_after_days: u32,
}Expand description
Calendar configuration.
Fields§
§enabled: boolEnable the calendar system.
timezone: StringDefault timezone for events.
default_reminder_minutes: Vec<u32>Default reminder minutes for new events.
alarm_channels: Vec<String>Alarm dispatch channels.
journal_sync: StringJournal sync mode: “on_open”, “midnight”, “both”.
system_calendar: boolShow cron jobs on the calendar.
archive_after_days: u32Days after which old events are archived.
Trait Implementations§
Source§impl Clone for CalendarConfig
impl Clone for CalendarConfig
Source§fn clone(&self) -> CalendarConfig
fn clone(&self) -> CalendarConfig
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 CalendarConfig
impl Debug for CalendarConfig
Source§impl Default for CalendarConfig
impl Default for CalendarConfig
Source§impl<'de> Deserialize<'de> for CalendarConfig
impl<'de> Deserialize<'de> for CalendarConfig
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 CalendarConfig
impl RefUnwindSafe for CalendarConfig
impl Send for CalendarConfig
impl Sync for CalendarConfig
impl Unpin for CalendarConfig
impl UnsafeUnpin for CalendarConfig
impl UnwindSafe for CalendarConfig
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