pub struct ContractObservation {
pub workspace_id: WorkspaceId,
pub lineage_id: LineageId,
pub revision: u64,
pub work_key: Key,
pub prior_submissions: u32,
pub contract: WorkContract,
}Expand description
The contract a run executes against, as observed at its start.
This is typed immutable content: later reviewed plan changes edit the plan, not this record.
Fields§
§workspace_id: WorkspaceIdWorkspace the contract was read from.
lineage_id: LineageIdWritable history the revision belongs to.
revision: u64Plan revision the contract was read at, meaningful within the lineage.
work_key: KeyHuman key of the work at that revision.
prior_submissions: u32Submissions the work already had, so a rework run is told from the first attempt.
contract: WorkContractThe authored contract exactly as it stood at that revision.
Trait Implementations§
Source§impl Clone for ContractObservation
impl Clone for ContractObservation
Source§impl Debug for ContractObservation
impl Debug for ContractObservation
Source§impl<'de> Deserialize<'de> for ContractObservation
impl<'de> Deserialize<'de> for ContractObservation
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
Source§impl PartialEq for ContractObservation
impl PartialEq for ContractObservation
Source§impl Serialize for ContractObservation
impl Serialize for ContractObservation
impl StructuralPartialEq for ContractObservation
Auto Trait Implementations§
impl Freeze for ContractObservation
impl RefUnwindSafe for ContractObservation
impl Send for ContractObservation
impl Sync for ContractObservation
impl Unpin for ContractObservation
impl UnsafeUnpin for ContractObservation
impl UnwindSafe for ContractObservation
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