pub struct RecordNote {
pub created_at: Option<u64>,
pub bytes: Option<u64>,
pub skipped: Option<String>,
pub removed_at: Option<u64>,
pub removed_by: Option<RecordRemoval>,
}Expand description
What the job history keeps about a failed job’s record, after the record is gone too.
Fields§
§created_at: Option<u64>When the record was made; None when it was not.
bytes: Option<u64>Its size when made.
skipped: Option<String>Why no record was made, such as too little free disk.
removed_at: Option<u64>When it was removed.
removed_by: Option<RecordRemoval>Why it was removed.
Implementations§
Source§impl RecordNote
impl RecordNote
Sourcepub fn state(&self) -> RecordState<'_>
pub fn state(&self) -> RecordState<'_>
What became of the record: not made, made and removed, or kept, in that order of precedence.
Sourcepub fn shell_command(job: u64) -> String
pub fn shell_command(job: u64) -> String
The command that opens a shell in job’s record: runnerctl shell 42.
Trait Implementations§
Source§impl Clone for RecordNote
impl Clone for RecordNote
Source§impl Debug for RecordNote
impl Debug for RecordNote
Source§impl Default for RecordNote
impl Default for RecordNote
Source§impl<'de> Deserialize<'de> for RecordNote
impl<'de> Deserialize<'de> for RecordNote
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 RecordNote
Source§impl PartialEq for RecordNote
impl PartialEq for RecordNote
Source§impl Serialize for RecordNote
impl Serialize for RecordNote
impl StructuralPartialEq for RecordNote
Auto Trait Implementations§
impl Freeze for RecordNote
impl RefUnwindSafe for RecordNote
impl Send for RecordNote
impl Sync for RecordNote
impl Unpin for RecordNote
impl UnsafeUnpin for RecordNote
impl UnwindSafe for RecordNote
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.