pub struct RetentionDependency {
pub dependency_uuid: Uuid,
pub scope_uuid: Uuid,
pub required_uuid: Uuid,
pub required_kind: RetentionRequiredKind,
pub dependency_class: RetentionDependencyClass,
pub provenance_uuid: Uuid,
pub recorded_at_micros: i64,
pub contract_version: u32,
}Expand description
One explicit retention dependency pin.
Fields§
§dependency_uuid: UuidCaller-supplied UUIDv7 identity and idempotency key.
scope_uuid: UuidSelection or retention root UUID.
required_uuid: UuidRequired subject UUID.
required_kind: RetentionRequiredKindClosed required subject kind.
dependency_class: RetentionDependencyClassClosed dependency class.
provenance_uuid: UuidProvenance event that published the dependency.
recorded_at_micros: i64Durable transaction time.
contract_version: u32Frozen record contract.
Implementations§
Source§impl RetentionDependency
impl RetentionDependency
Sourcepub fn new(
dependency_uuid: Uuid,
scope_uuid: Uuid,
required_uuid: Uuid,
required_kind: RetentionRequiredKind,
dependency_class: RetentionDependencyClass,
provenance_uuid: Uuid,
recorded_at_micros: i64,
) -> Result<Self, KnowledgeError>
pub fn new( dependency_uuid: Uuid, scope_uuid: Uuid, required_uuid: Uuid, required_kind: RetentionRequiredKind, dependency_class: RetentionDependencyClass, provenance_uuid: Uuid, recorded_at_micros: i64, ) -> Result<Self, KnowledgeError>
Construct one validated retention dependency.
Trait Implementations§
Source§impl Clone for RetentionDependency
impl Clone for RetentionDependency
Source§impl Debug for RetentionDependency
impl Debug for RetentionDependency
impl Eq for RetentionDependency
Source§impl PartialEq for RetentionDependency
impl PartialEq for RetentionDependency
impl StructuralPartialEq for RetentionDependency
Auto Trait Implementations§
impl Freeze for RetentionDependency
impl RefUnwindSafe for RetentionDependency
impl Send for RetentionDependency
impl Sync for RetentionDependency
impl Unpin for RetentionDependency
impl UnsafeUnpin for RetentionDependency
impl UnwindSafe for RetentionDependency
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.