Struct ex_cli::config::Config

source ·
pub struct Config {
Show 17 fields pub curr_time: DateTime<Utc>, pub min_depth: Option<usize>, pub max_depth: Option<usize>, pub show_indent: bool, pub all_files: bool, pub order_files: Vec<OrderKind>, pub order_name: bool, pub filter_recent: Option<Recent>, pub filter_type: Option<EntryKind>, pub show_total: bool, pub only_path: bool, pub escape_path: bool, pub null_path: bool, pub abs_path: bool, pub win_path: bool, pub completion: Option<ShellKind>, pub patterns: Vec<String>,
}

Fields§

§curr_time: DateTime<Utc>§min_depth: Option<usize>§max_depth: Option<usize>§show_indent: bool§all_files: bool§order_files: Vec<OrderKind>§order_name: bool§filter_recent: Option<Recent>§filter_type: Option<EntryKind>§show_total: bool§only_path: bool§escape_path: bool§null_path: bool§abs_path: bool§win_path: bool§completion: Option<ShellKind>§patterns: Vec<String>

Implementations§

source§

impl Config

source

pub fn new(name: String, args: Vec<String>) -> MyResult<Config>

source

pub fn default() -> Config

source

pub fn start_time(&self) -> Option<DateTime<Utc>>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.