Struct mcfly::shell_history::HistoryCommand
source · pub struct HistoryCommand {
pub command: String,
pub when: i64,
pub format: HistoryFormat,
}
Expand description
Represents each entry in a history file.
Fields§
§command: String
The user’s command.
when: i64
When the command was run, in seconds since Unix epoch.
format: HistoryFormat
The format of the file, so we can write the record back out.
Implementations§
Trait Implementations§
source§impl Debug for HistoryCommand
impl Debug for HistoryCommand
Auto Trait Implementations§
impl Freeze for HistoryCommand
impl RefUnwindSafe for HistoryCommand
impl Send for HistoryCommand
impl Sync for HistoryCommand
impl Unpin for HistoryCommand
impl UnwindSafe for HistoryCommand
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