[−][src]Struct jobrog::configure::Configuration
Fields
day_length: f32
editor: Option<String>
length_pay_period: u32
precision: Precision
truncation: Truncation
start_pay_period: Option<NaiveDate>
sunday_begins_week: bool
beginning_work_day: (usize, usize)
workdays: u8
max_width: Option<usize>
Methods
impl Configuration
[src]
pub fn width(&self) -> usize
[src]
pub fn read(path: Option<PathBuf>) -> Configuration
[src]
pub fn write(&self)
[src]
pub fn workdays(&mut self, workdays: &str)
[src]
pub fn effective_editor(&self) -> Option<(String, Option<String>)>
[src]
pub fn effective_color(&self) -> (bool, Option<String>)
[src]
pub fn config_file() -> PathBuf
[src]
pub fn is_workday(&self, date: &NaiveDate) -> bool
[src]
pub fn two_timer_config(&self) -> Option<Config>
[src]
Trait Implementations
impl Clone for Configuration
[src]
fn clone(&self) -> Configuration
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,