#[non_exhaustive]pub enum RevisionEventKind {
Show 27 variants
AssetImported {
asset_id: AssetId,
},
RepresentationAdded {
asset_id: AssetId,
representation_id: RepresentationId,
},
ResourceAdded {
resource_id: ResourceId,
},
RepresentationResourceAdded {
representation_id: RepresentationId,
resource_id: ResourceId,
position: u32,
},
LocatorAdded {
resource_id: ResourceId,
locator_id: LocatorId,
},
LocatorRetired {
resource_id: ResourceId,
locator_id: LocatorId,
},
MediaRootAdded {
media_root_id: MediaRootId,
},
MediaRootEnabledChanged {
media_root_id: MediaRootId,
enabled: bool,
},
MediaRootRemoved {
media_root_id: MediaRootId,
},
ExternalIdentifierAdded {
target: ObjectRef,
identifier: ExternalIdentifier,
},
ExternalIdentifierRemoved {
target: ObjectRef,
identifier: ExternalIdentifier,
},
MetadataAddedOrReplaced {
target: ObjectRef,
property: MetadataProperty,
},
MetadataRemoved {
target: ObjectRef,
property: MetadataProperty,
},
ActivityCreated {
activity_id: ActivityId,
kind: ActivityKind,
},
ActivityInputAdded {
activity_id: ActivityId,
representation_id: RepresentationId,
role: Option<ActivityRole>,
},
ActivityOutputAdded {
activity_id: ActivityId,
representation_id: RepresentationId,
role: Option<ActivityRole>,
},
ResourceFingerprintObserved {
resource_id: ResourceId,
algorithm: String,
version: u16,
},
ResourceFileFactsObserved {
resource_id: ResourceId,
},
RepresentationFingerprintObserved {
representation_id: RepresentationId,
algorithm: String,
version: u16,
},
DependencySetRecorded {
representation_id: RepresentationId,
},
JobRequested {
job_id: JobId,
},
JobClaimed {
job_id: JobId,
},
JobClaimRenewed {
job_id: JobId,
},
JobClaimReleased {
job_id: JobId,
},
JobSucceeded {
job_id: JobId,
},
JobFailed {
job_id: JobId,
},
JobCancelled {
job_id: JobId,
},
}Expand description
One semantic mutation recorded in a durable revision.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AssetImported
A logical asset and its import aggregate were created.
RepresentationAdded
A representation was attached to an asset.
Fields
representation_id: RepresentationIdAdded representation.
ResourceAdded
A storage resource was created.
Fields
resource_id: ResourceIdAdded resource.
RepresentationResourceAdded
A resource was attached to a representation’s content structure.
Fields
representation_id: RepresentationIdOwning representation.
resource_id: ResourceIdAttached resource.
LocatorAdded
A resource locator was added or explicitly confirmed.
LocatorRetired
A superseded resource locator was retired.
Fields
resource_id: ResourceIdResource that owned the retired locator.
MediaRootAdded
A resolver media root was added.
Fields
media_root_id: MediaRootIdAdded media root.
MediaRootEnabledChanged
A resolver media root was enabled or disabled.
Fields
media_root_id: MediaRootIdUpdated media root.
MediaRootRemoved
A resolver media root was removed.
Fields
media_root_id: MediaRootIdRemoved media root.
ExternalIdentifierAdded
An exact external identifier attachment was added.
Fields
identifier: ExternalIdentifierAdded external identifier.
ExternalIdentifierRemoved
An exact external identifier attachment was removed.
Fields
identifier: ExternalIdentifierRemoved external identifier.
MetadataAddedOrReplaced
One metadata property’s values were appended or replaced.
Fields
property: MetadataPropertyProperty that consumers should re-query.
MetadataRemoved
One metadata property was removed.
ActivityCreated
A production activity was created.
ActivityInputAdded
A production activity input edge was added.
Fields
activity_id: ActivityIdOwning activity.
representation_id: RepresentationIdConsumed representation.
role: Option<ActivityRole>Optional semantic edge role.
ActivityOutputAdded
A production activity output edge was added.
Fields
activity_id: ActivityIdOwning activity.
representation_id: RepresentationIdProduced representation.
role: Option<ActivityRole>Optional semantic edge role.
ResourceFingerprintObserved
A resource fingerprint domain received a new current observation.
Fields
resource_id: ResourceIdRe-observed storage resource.
ResourceFileFactsObserved
A resource’s size or modification time received a new observation.
Fields
resource_id: ResourceIdRe-observed storage resource.
RepresentationFingerprintObserved
A representation fingerprint domain received a new current observation.
Fields
representation_id: RepresentationIdRe-observed representation.
DependencySetRecorded
A representation’s complete dependency observation was replaced.
Fields
representation_id: RepresentationIdRepresentation whose authored dependency set changed.
JobRequested
A durable work request was created.
JobClaimed
A worker claimed a requested or expired job.
JobClaimRenewed
The current worker extended a job lease.
JobClaimReleased
The current worker released a job claim.
JobSucceeded
A job completed with its durable activity and output.
JobFailed
A job ended with a diagnostic and no output.
JobCancelled
A requested or claimed job was cancelled.
Implementations§
Source§impl RevisionEventKind
impl RevisionEventKind
Sourcepub const fn event_type(&self) -> RevisionEventType
pub const fn event_type(&self) -> RevisionEventType
Returns the payload-free type of this event.
Trait Implementations§
Source§impl Clone for RevisionEventKind
impl Clone for RevisionEventKind
Source§fn clone(&self) -> RevisionEventKind
fn clone(&self) -> RevisionEventKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more