pub struct Job {
pub id: String,
pub state: String,
pub exit_code: Option<i32>,
pub pid: u32,
pub command: String,
pub log: String,
}Expand description
A jouet job, as jouet job ls --json describes it.
Fields§
§id: String§state: Stringrunning, exited, stopped or gone.
exit_code: Option<i32>§pid: u32§command: StringThe command, as a shell would need it written.
log: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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
impl Eq for Job
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Forget for Job
impl Freeze for Job
impl Move for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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