Skip to main content

RevisionEventKind

Enum RevisionEventKind 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AssetImported

A logical asset and its import aggregate were created.

Fields

§asset_id: AssetId

Imported logical asset.

§

RepresentationAdded

A representation was attached to an asset.

Fields

§asset_id: AssetId

Owning logical asset.

§representation_id: RepresentationId

Added representation.

§

ResourceAdded

A storage resource was created.

Fields

§resource_id: ResourceId

Added resource.

§

RepresentationResourceAdded

A resource was attached to a representation’s content structure.

Fields

§representation_id: RepresentationId

Owning representation.

§resource_id: ResourceId

Attached resource.

§position: u32

Stable structural position within the representation.

§

LocatorAdded

A resource locator was added or explicitly confirmed.

Fields

§resource_id: ResourceId

Located resource.

§locator_id: LocatorId

Added locator.

§

LocatorRetired

A superseded resource locator was retired.

Fields

§resource_id: ResourceId

Resource that owned the retired locator.

§locator_id: LocatorId

Retired locator.

§

MediaRootAdded

A resolver media root was added.

Fields

§media_root_id: MediaRootId

Added media root.

§

MediaRootEnabledChanged

A resolver media root was enabled or disabled.

Fields

§media_root_id: MediaRootId

Updated media root.

§enabled: bool

New resolver participation state.

§

MediaRootRemoved

A resolver media root was removed.

Fields

§media_root_id: MediaRootId

Removed media root.

§

ExternalIdentifierAdded

An exact external identifier attachment was added.

Fields

§target: ObjectRef

Object receiving the identifier.

§identifier: ExternalIdentifier

Added external identifier.

§

ExternalIdentifierRemoved

An exact external identifier attachment was removed.

Fields

§target: ObjectRef

Object losing the identifier.

§identifier: ExternalIdentifier

Removed external identifier.

§

MetadataAddedOrReplaced

One metadata property’s values were appended or replaced.

Fields

§target: ObjectRef

Object whose metadata changed.

§property: MetadataProperty

Property that consumers should re-query.

§

MetadataRemoved

One metadata property was removed.

Fields

§target: ObjectRef

Object whose metadata changed.

§property: MetadataProperty

Removed property.

§

ActivityCreated

A production activity was created.

Fields

§activity_id: ActivityId

Added activity.

§kind: ActivityKind

Extensible activity kind.

§

ActivityInputAdded

A production activity input edge was added.

Fields

§activity_id: ActivityId

Owning activity.

§representation_id: RepresentationId

Consumed representation.

§role: Option<ActivityRole>

Optional semantic edge role.

§

ActivityOutputAdded

A production activity output edge was added.

Fields

§activity_id: ActivityId

Owning activity.

§representation_id: RepresentationId

Produced representation.

§role: Option<ActivityRole>

Optional semantic edge role.

Trait Implementations§

Source§

impl Clone for RevisionEventKind

Source§

fn clone(&self) -> RevisionEventKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RevisionEventKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for RevisionEventKind

Source§

impl PartialEq for RevisionEventKind

Source§

fn eq(&self, other: &RevisionEventKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for RevisionEventKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.