pub struct CohortRow {
pub deliverable: Deliverable,
pub lock: LockInfo,
}Expand description
One row in a Cohort: a deliverable held under a single lock.
Pairing the deliverable with its lock structurally makes the invariant “the i-th deliverable is held under the i-th lock” unrepresentable as broken at the type level. Pre-F5 the same invariant lived in a doc comment + a runtime test assertion; a future refactor that pushed to one parallel Vec but not the other would silently violate it.
Fields§
§deliverable: Deliverable§lock: LockInfoTrait Implementations§
Source§impl<'de> Deserialize<'de> for CohortRow
impl<'de> Deserialize<'de> for CohortRow
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
Auto Trait Implementations§
impl Freeze for CohortRow
impl RefUnwindSafe for CohortRow
impl Send for CohortRow
impl Sync for CohortRow
impl Unpin for CohortRow
impl UnsafeUnpin for CohortRow
impl UnwindSafe for CohortRow
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