[][src]Struct jobrog::configure::Configuration

pub struct Configuration {
    pub day_length: f32,
    pub editor: Option<Vec<String>>,
    pub length_pay_period: u32,
    pub precision: Precision,
    pub truncation: Truncation,
    pub start_pay_period: Option<NaiveDate>,
    pub sunday_begins_week: bool,
    pub beginning_work_day: (usize, usize),
    pub workdays: u8,
    pub max_width: Option<usize>,
    pub h12: bool,
    pub style_map: BTreeMap<String, String>,
    // some fields omitted
}

Fields

day_length: f32editor: Option<Vec<String>>length_pay_period: u32precision: Precisiontruncation: Truncationstart_pay_period: Option<NaiveDate>sunday_begins_week: boolbeginning_work_day: (usize, usize)workdays: u8max_width: Option<usize>h12: boolstyle_map: BTreeMap<String, String>

Implementations

impl Configuration[src]

pub fn width(&self) -> usize[src]

pub fn read(path: Option<PathBuf>, directory: Option<&str>) -> Configuration[src]

pub fn write(&self)[src]

pub fn directory(&self) -> Option<&str>[src]

pub fn workdays(&mut self, workdays: &str)[src]

pub fn effective_editor(&self) -> Option<(Vec<String>, Option<String>)>[src]

pub fn effective_color(&self) -> (bool, Option<String>)[src]

pub fn config_file(directory: Option<&str>) -> PathBuf[src]

pub fn is_workday(&self, date: &NaiveDate) -> bool[src]

pub fn two_timer_config(&self) -> Option<Config>[src]

pub fn set_precision(&mut self, identifier: &str)[src]

pub fn set_truncation(&mut self, identifier: &str)[src]

Trait Implementations

impl Clone for Configuration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,