#[non_exhaustive]pub struct RunRow {
pub name: RunName,
pub project: PathBuf,
pub source_digest: String,
pub desired: Desired,
pub state: RunState,
pub failed_cause: Option<ErrorCode>,
pub state_op: Option<OperationId>,
pub state_at: String,
pub record: RunRecord,
pub observed: Option<LastObserved>,
pub observed_at: Option<String>,
}Expand description
A run, as the store keeps it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: RunNameThe run’s name.
project: PathBufThe project folder it was last brought up or updated from.
source_digest: StringThe digest of that project’s files (crate::Project::digest); empty when it wasn’t
read (an import, a run that never set it).
desired: DesiredWhat the user wants of it.
state: RunStateWhere it stands.
failed_cause: Option<ErrorCode>Why it failed, when state is failed.
state_op: Option<OperationId>The operation whose transition put it there; none after an observation or an import.
state_at: StringWhen it got there.
record: RunRecordThe rest the runner keeps about it (its state is this row’s).
observed: Option<LastObserved>What the runner last saw of it, when it read it.
observed_at: Option<String>When it last saw it.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunRow
impl<'de> Deserialize<'de> for RunRow
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 StructuralPartialEq for RunRow
Auto Trait Implementations§
impl Forget for RunRow
impl Freeze for RunRow
impl Move for RunRow
impl RefUnwindSafe for RunRow
impl Send for RunRow
impl Sync for RunRow
impl Unpin for RunRow
impl UnsafeUnpin for RunRow
impl UnwindSafe for RunRow
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