pub struct ContextObjectV1 {Show 23 fields
pub v: u32,
pub object_id: TeamId,
pub object_type: ContextObjectType,
pub scope: TeamScopeV1,
pub source: SourceKind,
pub author: MemberId,
pub created_at: TeamTimestampV1,
pub valid_from: TeamTimestampV1,
pub valid_until: Option<TeamTimestampV1>,
pub classification: TeamClassification,
pub lifecycle_state: ContextLifecycleState,
pub authority_state: AuthorityState,
pub approval_state: ApprovalState,
pub content_digest: ContentDigest,
pub provenance_digest: Option<RecordDigest>,
pub authority_decision_digest: Option<RecordDigest>,
pub supersedes: Option<RecordDigest>,
pub superseded_by: Option<RecordDigest>,
pub redacted_at: Option<TeamTimestampV1>,
pub redaction_receipt_digest: Option<RecordDigest>,
pub version: u64,
pub parent_digest: Option<RecordDigest>,
pub idempotency_key: IdempotencyKey,
}Fields§
§v: u32§object_id: TeamId§object_type: ContextObjectType§scope: TeamScopeV1§source: SourceKind§created_at: TeamTimestampV1§valid_from: TeamTimestampV1§valid_until: Option<TeamTimestampV1>§classification: TeamClassification§lifecycle_state: ContextLifecycleState§approval_state: ApprovalState§content_digest: ContentDigest§provenance_digest: Option<RecordDigest>§supersedes: Option<RecordDigest>§superseded_by: Option<RecordDigest>§redacted_at: Option<TeamTimestampV1>§redaction_receipt_digest: Option<RecordDigest>§version: u64§parent_digest: Option<RecordDigest>§idempotency_key: IdempotencyKeyImplementations§
Source§impl ContextObjectV1
impl ContextObjectV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for ContextObjectV1
impl Clone for ContextObjectV1
Source§impl Debug for ContextObjectV1
impl Debug for ContextObjectV1
Source§impl<'de> Deserialize<'de> for ContextObjectV1
impl<'de> Deserialize<'de> for ContextObjectV1
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContextObjectV1
Source§impl PartialEq for ContextObjectV1
impl PartialEq for ContextObjectV1
Source§impl Serialize for ContextObjectV1
impl Serialize for ContextObjectV1
impl StructuralPartialEq for ContextObjectV1
Auto Trait Implementations§
impl Forget for ContextObjectV1
impl Freeze for ContextObjectV1
impl Move for ContextObjectV1
impl RefUnwindSafe for ContextObjectV1
impl Send for ContextObjectV1
impl Sync for ContextObjectV1
impl Unpin for ContextObjectV1
impl UnsafeUnpin for ContextObjectV1
impl UnwindSafe for ContextObjectV1
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