pub struct NewCommand {
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
Données nécessaires pour insérer une nouvelle commande.
Fields§
§command: String§cwd: Option<String>§shell: Option<String>§hostname: Option<String>§exit_code: Option<i64>§created_at: String§git_root: Option<String>Racine du dépôt Git (git rev-parse --show-toplevel), si applicable.
git_branch: Option<String>Branche Git courante, si applicable.
git_remote: Option<String>URL du remote origin, si applicable.
session_id: Option<String>Identifiant de session shell, si fourni (MNEMO_SESSION_ID).
Trait Implementations§
Source§impl Clone for NewCommand
impl Clone for NewCommand
Source§fn clone(&self) -> NewCommand
fn clone(&self) -> NewCommand
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 moreSource§impl Debug for NewCommand
impl Debug for NewCommand
Source§impl Default for NewCommand
impl Default for NewCommand
Source§fn default() -> NewCommand
fn default() -> NewCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NewCommand
impl RefUnwindSafe for NewCommand
impl Send for NewCommand
impl Sync for NewCommand
impl Unpin for NewCommand
impl UnsafeUnpin for NewCommand
impl UnwindSafe for NewCommand
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