pub struct TrustedProvenance { /* private fields */ }Expand description
Server-trusted provenance created only from an authenticated operation and connection context.
Implementations§
Source§impl TrustedProvenance
impl TrustedProvenance
Sourcepub const fn actor_id(self) -> ActorId
pub const fn actor_id(self) -> ActorId
Authenticated actor responsible for the originating command.
Sourcepub const fn tenant_id(self) -> TenantId
pub const fn tenant_id(self) -> TenantId
Authenticated tenant that owns every derived artifact.
Sourcepub const fn device_id(self) -> DeviceId
pub const fn device_id(self) -> DeviceId
Authenticated device that submitted the originating command.
Sourcepub const fn operation_id(self) -> OperationId
pub const fn operation_id(self) -> OperationId
Original operation identifier.
Sourcepub const fn operation_lineage(self) -> LineageContext
pub const fn operation_lineage(self) -> LineageContext
Client-originating lineage retained by the operation ledger and audit record.
Sourcepub const fn primary_event(self, event_id: EventId) -> DerivedEventProvenance
pub const fn primary_event(self, event_id: EventId) -> DerivedEventProvenance
Creates the primary authoritative event lineage with the operation as direct cause.
Sourcepub const fn job(self, job_id: JobId, caused_by: LineageRef) -> JobProvenance
pub const fn job(self, job_id: JobId, caused_by: LineageRef) -> JobProvenance
Creates durable job/outbox metadata while retaining the originating correlation chain.
Trait Implementations§
Source§impl Clone for TrustedProvenance
impl Clone for TrustedProvenance
Source§fn clone(&self) -> TrustedProvenance
fn clone(&self) -> TrustedProvenance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrustedProvenance
Source§impl Debug for TrustedProvenance
impl Debug for TrustedProvenance
impl Eq for TrustedProvenance
Source§impl PartialEq for TrustedProvenance
impl PartialEq for TrustedProvenance
impl StructuralPartialEq for TrustedProvenance
Auto Trait Implementations§
impl Freeze for TrustedProvenance
impl RefUnwindSafe for TrustedProvenance
impl Send for TrustedProvenance
impl Sync for TrustedProvenance
impl Unpin for TrustedProvenance
impl UnsafeUnpin for TrustedProvenance
impl UnwindSafe for TrustedProvenance
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