pub struct MachineMetadata {
pub lock: String,
pub ai: Option<AiProvenance>,
}Available on crate feature
catalog only.Expand description
Metadata for a catalog value that was set or managed by a machine.
See ADR 0022.
The presence of this metadata marks the value as machine-managed (by an AI
engine, a translation memory system, a script, …). lock is an
integrity fingerprint of the value at that time: when it no longer matches the
current value, a human edited it, and high-level writers drop the metadata
instead of carrying a stale machine fact forward.
Fields§
§lock: StringIntegrity fingerprint of the value at the time a machine set it.
ai: Option<AiProvenance>Optional AI provenance, when the machine was an AI engine.
Trait Implementations§
Source§impl Clone for MachineMetadata
impl Clone for MachineMetadata
Source§fn clone(&self) -> MachineMetadata
fn clone(&self) -> MachineMetadata
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 moreSource§impl Debug for MachineMetadata
impl Debug for MachineMetadata
Source§impl<'de> Deserialize<'de> for MachineMetadata
impl<'de> Deserialize<'de> for MachineMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MachineMetadata
impl PartialEq for MachineMetadata
Source§fn eq(&self, other: &MachineMetadata) -> bool
fn eq(&self, other: &MachineMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MachineMetadata
impl Serialize for MachineMetadata
impl StructuralPartialEq for MachineMetadata
Auto Trait Implementations§
impl Freeze for MachineMetadata
impl RefUnwindSafe for MachineMetadata
impl Send for MachineMetadata
impl Sync for MachineMetadata
impl Unpin for MachineMetadata
impl UnsafeUnpin for MachineMetadata
impl UnwindSafe for MachineMetadata
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