pub struct EntityProvenance {
pub rationale: Option<String>,
pub kind: Option<String>,
pub timestamp: Option<String>,
pub actor: Option<String>,
}Expand description
One entity’s portable authoring provenance. Every field is optional so
the shape grows additively; a record present in entities with a
None rationale is still meaningful (the entity was touched but carried
no note), distinct from an entity absent from the map entirely.
Fields§
§rationale: Option<String>The agent-authored one-sentence rationale — the 97% trust signal.
None when the underlying mutation carried no note.
kind: Option<String>Mutation kind that last set this rationale (create, update, …),
as the stable kebab-case wire token.
timestamp: Option<String>RFC-3339 timestamp of that mutation.
actor: Option<String>Actor that authored the mutation (agent, human, …).
Trait Implementations§
Source§impl Clone for EntityProvenance
impl Clone for EntityProvenance
Source§fn clone(&self) -> EntityProvenance
fn clone(&self) -> EntityProvenance
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 EntityProvenance
impl Debug for EntityProvenance
Source§impl Default for EntityProvenance
impl Default for EntityProvenance
Source§fn default() -> EntityProvenance
fn default() -> EntityProvenance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntityProvenance
impl<'de> Deserialize<'de> for EntityProvenance
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
impl Eq for EntityProvenance
Source§impl PartialEq for EntityProvenance
impl PartialEq for EntityProvenance
Source§impl Serialize for EntityProvenance
impl Serialize for EntityProvenance
impl StructuralPartialEq for EntityProvenance
Auto Trait Implementations§
impl Freeze for EntityProvenance
impl RefUnwindSafe for EntityProvenance
impl Send for EntityProvenance
impl Sync for EntityProvenance
impl Unpin for EntityProvenance
impl UnsafeUnpin for EntityProvenance
impl UnwindSafe for EntityProvenance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.