pub struct AppConfig {
pub motion_api_key: String,
pub sync_sources: Vec<SyncSource>,
pub global_sync_rules: SyncRules,
pub database_path: Option<String>,
pub polling_interval_seconds: u64,
pub schedule_overrides: Option<Vec<ScheduleOverride>>,
}
Fields§
§motion_api_key: String
§sync_sources: Vec<SyncSource>
§global_sync_rules: SyncRules
§database_path: Option<String>
§polling_interval_seconds: u64
§schedule_overrides: Option<Vec<ScheduleOverride>>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConfig
impl<'de> Deserialize<'de> for AppConfig
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 AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnwindSafe for AppConfig
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