pub struct Invocation {
pub command: BString,
pub shellname: String,
pub working_directory: Option<BString>,
pub hostname: Option<BString>,
pub username: Option<BString>,
pub exit_status: Option<i64>,
pub start_unix_timestamp: Option<i64>,
pub end_unix_timestamp: Option<i64>,
pub session_id: i64,
pub machine_id: Option<u64>,
}Fields§
§command: BString§shellname: String§working_directory: Option<BString>§hostname: Option<BString>§username: Option<BString>§exit_status: Option<i64>§start_unix_timestamp: Option<i64>§end_unix_timestamp: Option<i64>§session_id: i64§machine_id: Option<u64>Implementations§
Source§impl Invocation
impl Invocation
Source§impl Invocation
impl Invocation
Source§impl Invocation
impl Invocation
pub(crate) fn to_json_export(&self) -> Value
Trait Implementations§
Source§impl Debug for Invocation
impl Debug for Invocation
Source§impl Default for Invocation
impl Default for Invocation
Source§impl<'de> Deserialize<'de> for Invocation
impl<'de> Deserialize<'de> for Invocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Invocation
impl RefUnwindSafe for Invocation
impl Send for Invocation
impl Sync for Invocation
impl Unpin for Invocation
impl UnsafeUnpin for Invocation
impl UnwindSafe for Invocation
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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