pub struct CalendarConfig { /* private fields */ }Implementations§
Source§impl CalendarConfig
impl CalendarConfig
pub fn new( name: Option<String>, color: Option<String>, read_only: Option<bool>, remote_config: Option<RemoteConfig>, ) -> Self
Sourcepub fn write(&self, path: &Path) -> Result<(), CalendarConfigError>
pub fn write(&self, path: &Path) -> Result<(), CalendarConfigError>
Writes the config while preserving comments and unrelated formatting in an existing file.
pub fn load_optional(path: &Path) -> Result<Option<Self>, CalendarConfigError>
pub fn name(&self) -> Option<&str>
pub fn set_name(&mut self, name: Option<String>)
pub fn color(&self) -> Option<&str>
pub fn set_color(&mut self, color: Option<String>)
pub fn read_only(&self) -> Option<bool>
pub fn remote_config(&self) -> Option<&RemoteConfig>
Trait Implementations§
Source§impl Clone for CalendarConfig
impl Clone for CalendarConfig
Source§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
Source§impl PartialEq for CalendarConfig
impl PartialEq for CalendarConfig
Source§impl Serialize for CalendarConfig
impl Serialize for CalendarConfig
impl StructuralPartialEq for CalendarConfig
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