pub struct CommandRecord {
pub id: i64,
pub command: String,
pub cwd: Option<String>,
pub shell: Option<String>,
pub hostname: Option<String>,
pub exit_code: Option<i64>,
pub created_at: String,
pub git_root: Option<String>,
pub git_branch: Option<String>,
pub git_remote: Option<String>,
pub session_id: Option<String>,
}Expand description
Commande lue depuis la base.
Certains champs (id, shell, hostname, exit_code) font partie du modèle de données mais ne sont pas tous affichés par le MVP de la TUI.
Fields§
§id: i64§command: String§cwd: Option<String>§shell: Option<String>§hostname: Option<String>§exit_code: Option<i64>§created_at: String§git_root: Option<String>§git_branch: Option<String>§git_remote: Option<String>§session_id: Option<String>Trait Implementations§
Source§impl Clone for CommandRecord
impl Clone for CommandRecord
Source§fn clone(&self) -> CommandRecord
fn clone(&self) -> CommandRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommandRecord
impl RefUnwindSafe for CommandRecord
impl Send for CommandRecord
impl Sync for CommandRecord
impl Unpin for CommandRecord
impl UnsafeUnpin for CommandRecord
impl UnwindSafe for CommandRecord
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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