pub struct ContextRecord {
pub id: String,
pub name: String,
pub did: Option<String>,
pub description: Option<String>,
pub parent: Option<String>,
pub base_path: String,
pub index: u32,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub context_policy: Option<ContextPolicy>,
}Fields§
§id: StringThe context’s materialized path identifier — slash-separated segments
(e.g. acme/eng/team-a). A top-level context is a single segment.
name: String§did: Option<String>§description: Option<String>§parent: Option<String>The parent context’s id, or None for a top-level context. Together
with id this records the tree; absent on legacy (flat)
records, which deserialize as top-level.
base_path: StringBIP-32 derivation base for this context’s keys. For a sub-context this
nests under the parent’s base ({parent.base_path}/<child>').
index: u32§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§context_policy: Option<ContextPolicy>Per-context policy constraining what context-scoped actors may do within
this context (see crate::context_policy::ContextPolicy). Absent on
legacy records and by default, which imposes no constraints — enforcement
resolves the policy across the whole ancestor chain, so a missing policy
at any level simply contributes nothing.
Trait Implementations§
Source§impl Clone for ContextRecord
impl Clone for ContextRecord
Source§fn clone(&self) -> ContextRecord
fn clone(&self) -> ContextRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more