Struct pace_core::GeneralConfig
source · pub struct GeneralConfig { /* private fields */ }Expand description
The general configuration for the pace application
Implementations§
source§impl GeneralConfig
impl GeneralConfig
pub fn activity_log_options(&self) -> &ActivityLogOptions
sourcepub fn autogenerate_ids(&self) -> &bool
pub fn autogenerate_ids(&self) -> &bool
If IDs should be autogenerated for activities, otherwise it’s a hard error
Default: true
sourcepub fn category_separator(&self) -> &String
pub fn category_separator(&self) -> &String
The default category separator
Default: ::
sourcepub fn default_priority(&self) -> &ItemPriorityKind
pub fn default_priority(&self) -> &ItemPriorityKind
The default priority
Default: medium
source§impl GeneralConfig
impl GeneralConfig
pub fn activity_log_options_mut(&mut self) -> &mut ActivityLogOptions
Trait Implementations§
source§impl Clone for GeneralConfig
impl Clone for GeneralConfig
source§fn clone(&self) -> GeneralConfig
fn clone(&self) -> GeneralConfig
Returns a copy 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 GeneralConfig
impl Debug for GeneralConfig
source§impl Default for GeneralConfig
impl Default for GeneralConfig
source§impl<'de> Deserialize<'de> for GeneralConfig
impl<'de> Deserialize<'de> for GeneralConfig
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 RefUnwindSafe for GeneralConfig
impl Send for GeneralConfig
impl Sync for GeneralConfig
impl Unpin for GeneralConfig
impl UnwindSafe for GeneralConfig
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