pub struct DateConfig {
pub date_string: Option<String>,
pub date_file: Option<String>,
pub iso_format: Option<IsoFormat>,
pub rfc_email: bool,
pub rfc_3339: Option<Rfc3339Format>,
pub reference_file: Option<String>,
pub set_string: Option<String>,
pub utc: bool,
pub format: Option<String>,
}Expand description
Configuration for the date command.
Fields§
§date_string: Option<String>Display time described by STRING (-d).
date_file: Option<String>Read dates from a file, one per line (-f).
iso_format: Option<IsoFormat>ISO 8601 output format (-I).
rfc_email: boolRFC 5322 / email format (-R).
rfc_3339: Option<Rfc3339Format>RFC 3339 format.
reference_file: Option<String>Show modification time of FILE (-r).
set_string: Option<String>Set system time (-s). We only parse; actual setting requires root.
utc: boolUse UTC (-u).
format: Option<String>Custom format string (starts with +).
Trait Implementations§
Source§impl Default for DateConfig
impl Default for DateConfig
Source§fn default() -> DateConfig
fn default() -> DateConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DateConfig
impl RefUnwindSafe for DateConfig
impl Send for DateConfig
impl Sync for DateConfig
impl Unpin for DateConfig
impl UnsafeUnpin for DateConfig
impl UnwindSafe for DateConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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