pub struct ContextViewSpec {
pub id: String,
pub allowed_sources: BTreeSet<String>,
pub writable_sources: BTreeSet<String>,
pub policy_revision: String,
}Expand description
Host-owned scope. Source locators are application metadata, not authenticated identities. Keep definition/revocation and the root graph handle outside untrusted agent control.
Fields§
§id: StringStable host-assigned agent or task scope name.
allowed_sources: BTreeSet<String>Exact source locators readable through this view; empty means no access.
writable_sources: BTreeSet<String>Exact source locators replaceable through this view; must be readable too.
policy_revision: StringHost-owned current authorization/policy epoch. It overrides request policy metadata.
Trait Implementations§
Source§impl Clone for ContextViewSpec
impl Clone for ContextViewSpec
Source§impl<'de> Deserialize<'de> for ContextViewSpec
impl<'de> Deserialize<'de> for ContextViewSpec
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 ContextViewSpec
Source§impl PartialEq for ContextViewSpec
impl PartialEq for ContextViewSpec
Source§impl Serialize for ContextViewSpec
impl Serialize for ContextViewSpec
impl StructuralPartialEq for ContextViewSpec
Auto Trait Implementations§
impl Forget for ContextViewSpec
impl Freeze for ContextViewSpec
impl Move for ContextViewSpec
impl RefUnwindSafe for ContextViewSpec
impl Send for ContextViewSpec
impl Sync for ContextViewSpec
impl Unpin for ContextViewSpec
impl UnsafeUnpin for ContextViewSpec
impl UnwindSafe for ContextViewSpec
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