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 moreSource§impl Debug for ContextRecord
impl Debug for ContextRecord
Source§impl<'de> Deserialize<'de> for ContextRecord
impl<'de> Deserialize<'de> for ContextRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ContextRecord
impl Serialize for ContextRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for ContextRecord
impl RefUnwindSafe for ContextRecord
impl Send for ContextRecord
impl Sync for ContextRecord
impl Unpin for ContextRecord
impl UnsafeUnpin for ContextRecord
impl UnwindSafe for ContextRecord
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
impl<T, U> DeserializeTypedOwned<T> for Uwhere
U: for<'de> DeserializeTyped<'de, T>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
T.