#[non_exhaustive]pub enum RevisionEventKind {
Show 16 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>,
},
}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.
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 moreSource§impl Debug for RevisionEventKind
impl Debug for RevisionEventKind
impl Eq for RevisionEventKind
Source§impl PartialEq for RevisionEventKind
impl PartialEq for RevisionEventKind
Source§fn eq(&self, other: &RevisionEventKind) -> bool
fn eq(&self, other: &RevisionEventKind) -> bool
self and other values to be equal, and is used by ==.