pub struct ArtifactPreferenceEvent {
pub preference_event_uuid: Uuid,
pub source_uuid: Uuid,
pub artifact_uuid: Uuid,
pub prior_artifact_uuid: Option<Uuid>,
pub reason: String,
pub provenance_uuid: Uuid,
pub recorded_at_micros: i64,
pub contract_version: u32,
}Expand description
One append-only preferred-representation event.
Fields§
§preference_event_uuid: UuidCaller-supplied UUIDv7 identity and idempotency key.
source_uuid: UuidParent Source whose preferred representation changed.
artifact_uuid: UuidNewly preferred Artifact.
prior_artifact_uuid: Option<Uuid>Previously preferred Artifact, when known.
reason: StringBounded human-readable reason; never credentials or raw content.
provenance_uuid: UuidProvenance event that published the preference.
recorded_at_micros: i64Durable transaction time.
contract_version: u32Frozen record contract.
Implementations§
Trait Implementations§
Source§impl Clone for ArtifactPreferenceEvent
impl Clone for ArtifactPreferenceEvent
Source§impl Debug for ArtifactPreferenceEvent
impl Debug for ArtifactPreferenceEvent
impl Eq for ArtifactPreferenceEvent
Source§impl PartialEq for ArtifactPreferenceEvent
impl PartialEq for ArtifactPreferenceEvent
impl StructuralPartialEq for ArtifactPreferenceEvent
Auto Trait Implementations§
impl Freeze for ArtifactPreferenceEvent
impl RefUnwindSafe for ArtifactPreferenceEvent
impl Send for ArtifactPreferenceEvent
impl Sync for ArtifactPreferenceEvent
impl Unpin for ArtifactPreferenceEvent
impl UnsafeUnpin for ArtifactPreferenceEvent
impl UnwindSafe for ArtifactPreferenceEvent
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.