pub struct AuthorStamp {
pub user_id: UserId,
pub token_id: Option<TokenId>,
pub subject_type: SubjectType,
pub authored_at: DateTime<Utc>,
}Expand description
Per-record authorship stamp.
Carried as Option<AuthorStamp> on Observation, Belief and
Evidence so “whose call produced this insight” survives an export,
even though every team member writes into the same tenant-scoped
store. None for records written before authorship existed and for
anonymous compat-mode calls.
Fields§
§user_id: UserIdThe originating user id. For service tokens this is
"service:<subject_id>" so service-written records are
visually distinguishable from human-written ones.
token_id: Option<TokenId>The token id that minted the context, when present. None for local-bootstrap contexts that don’t transit a token.
subject_type: SubjectTypeWall-clock time the authoring happened. Distinct from
observed_at / extracted_at, which are content timestamps;
this is the persistence timestamp.
Trait Implementations§
Source§impl Clone for AuthorStamp
impl Clone for AuthorStamp
Source§fn clone(&self) -> AuthorStamp
fn clone(&self) -> AuthorStamp
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 AuthorStamp
impl Debug for AuthorStamp
Source§impl<'de> Deserialize<'de> for AuthorStamp
impl<'de> Deserialize<'de> for AuthorStamp
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 AuthorStamp
impl PartialEq for AuthorStamp
Source§impl Serialize for AuthorStamp
impl Serialize for AuthorStamp
impl StructuralPartialEq for AuthorStamp
Auto Trait Implementations§
impl Freeze for AuthorStamp
impl RefUnwindSafe for AuthorStamp
impl Send for AuthorStamp
impl Sync for AuthorStamp
impl Unpin for AuthorStamp
impl UnsafeUnpin for AuthorStamp
impl UnwindSafe for AuthorStamp
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