2021-05-08 10:29:46 -06:00
|
|
|
use serde::Deserialize;
|
|
|
|
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
|
|
pub struct ReshEntry {
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "cmdLine")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub cmd_line: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "exitCode")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub exit_code: i64,
|
|
|
|
pub shell: String,
|
|
|
|
pub uname: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "sessionId")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub session_id: String,
|
|
|
|
pub home: String,
|
|
|
|
pub lang: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "lcAll")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub lc_all: String,
|
|
|
|
pub login: String,
|
|
|
|
pub pwd: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "pwdAfter")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub pwd_after: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "shellEnv")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub shell_env: String,
|
|
|
|
pub term: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "realPwd")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub real_pwd: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "realPwdAfter")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub real_pwd_after: String,
|
|
|
|
pub pid: i64,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "sessionPid")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub session_pid: i64,
|
|
|
|
pub host: String,
|
|
|
|
pub hosttype: String,
|
|
|
|
pub ostype: String,
|
|
|
|
pub machtype: String,
|
|
|
|
pub shlvl: i64,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "timezoneBefore")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub timezone_before: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "timezoneAfter")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub timezone_after: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "realtimeBefore")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub realtime_before: f64,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "realtimeAfter")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub realtime_after: f64,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "realtimeBeforeLocal")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub realtime_before_local: f64,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "realtimeAfterLocal")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub realtime_after_local: f64,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "realtimeDuration")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub realtime_duration: f64,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "realtimeSinceSessionStart")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub realtime_since_session_start: f64,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "realtimeSinceBoot")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub realtime_since_boot: f64,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "gitDir")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub git_dir: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "gitRealDir")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub git_real_dir: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "gitOriginRemote")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub git_origin_remote: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "gitDirAfter")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub git_dir_after: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "gitRealDirAfter")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub git_real_dir_after: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "gitOriginRemoteAfter")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub git_origin_remote_after: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "machineId")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub machine_id: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "osReleaseId")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub os_release_id: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "osReleaseVersionId")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub os_release_version_id: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "osReleaseIdLike")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub os_release_id_like: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "osReleaseName")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub os_release_name: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "osReleasePrettyName")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub os_release_pretty_name: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "reshUuid")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub resh_uuid: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "reshVersion")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub resh_version: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "reshRevision")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub resh_revision: String,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "partsMerged")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub parts_merged: bool,
|
|
|
|
pub recalled: bool,
|
2021-05-09 08:20:39 -06:00
|
|
|
#[serde(rename = "recallLastCmdLine")]
|
2021-05-08 10:29:46 -06:00
|
|
|
pub recall_last_cmd_line: String,
|
|
|
|
pub cols: String,
|
|
|
|
pub lines: String,
|
|
|
|
}
|