Struct Config

Source
pub struct Config {
Show 26 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 all_recurse: bool, pub zip_expand: bool, pub zip_password: Option<String>, pub case_sensitive: Option<bool>, pub order_files: Vec<OrderKind>, pub order_name: bool, pub filter_recent: RecentKind, pub filter_types: Option<HashSet<FileKind>>, pub filter_git: Option<GitFlags>, pub show_total: bool, pub show_debug: bool, pub show_pretty: bool, pub show_utc: bool, pub show_owner: bool, pub show_sig: bool, pub only_path: bool, pub escape_path: bool, pub null_path: bool, pub abs_path: bool, pub completion: Option<Shell>, pub patterns: Vec<String>,
}

Fields§

§curr_time: DateTime<Utc>§min_depth: Option<usize>§max_depth: Option<usize>§show_indent: bool§all_files: bool§all_recurse: bool§zip_expand: bool§zip_password: Option<String>§case_sensitive: Option<bool>§order_files: Vec<OrderKind>§order_name: bool§filter_recent: RecentKind§filter_types: Option<HashSet<FileKind>>§filter_git: Option<GitFlags>§show_total: bool§show_debug: bool§show_pretty: bool§show_utc: bool§show_owner: bool§show_sig: bool§only_path: bool§escape_path: bool§null_path: bool§abs_path: bool§completion: Option<Shell>§patterns: Vec<String>

Implementations§

Source§

impl Config

Source

pub fn new(name: String, args: Vec<String>, piped: bool) -> MyResult<Self>

Source

pub fn default() -> Self

Source

pub fn start_time<Tz: TimeZone>(&self, zone: &Tz) -> Option<DateTime<Utc>>

Source

pub fn want_decrypt(&self) -> bool

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

impl<T> ErasedDestructor for T
where T: 'static,