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: SubjectTypeWhat class of subject authored the record.
Wall-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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more