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
sourceimpl HistoryCommand
impl HistoryCommand
Trait Implementations
sourceimpl Debug for HistoryCommand
impl Debug for HistoryCommand
Auto Trait Implementations
impl RefUnwindSafe for HistoryCommand
impl Send for HistoryCommand
impl Sync for HistoryCommand
impl Unpin for HistoryCommand
impl UnwindSafe for HistoryCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more