pub struct NormalizedScope {
pub grants: Vec<NormalizedToolGrant>,
pub resource_grants: Vec<NormalizedResourceGrant>,
pub prompt_grants: Vec<NormalizedPromptGrant>,
}Expand description
Proof-facing scope.
Fields§
§grants: Vec<NormalizedToolGrant>§resource_grants: Vec<NormalizedResourceGrant>§prompt_grants: Vec<NormalizedPromptGrant>Implementations§
Source§impl NormalizedScope
impl NormalizedScope
Sourcepub fn is_subset_of(&self, parent: &Self) -> bool
pub fn is_subset_of(&self, parent: &Self) -> bool
Mirrors ChioScope::is_subset_of over the normalized proof-facing AST.
Trait Implementations§
Source§impl Clone for NormalizedScope
impl Clone for NormalizedScope
Source§fn clone(&self) -> NormalizedScope
fn clone(&self) -> NormalizedScope
Returns a duplicate of the value. Read more
1.0.0 · 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 NormalizedScope
impl Debug for NormalizedScope
Source§impl<'de> Deserialize<'de> for NormalizedScope
impl<'de> Deserialize<'de> for NormalizedScope
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 NormalizedScope
impl PartialEq for NormalizedScope
Source§impl Serialize for NormalizedScope
impl Serialize for NormalizedScope
Source§impl TryFrom<&ChioScope> for NormalizedScope
impl TryFrom<&ChioScope> for NormalizedScope
impl Eq for NormalizedScope
impl StructuralPartialEq for NormalizedScope
Auto Trait Implementations§
impl Freeze for NormalizedScope
impl RefUnwindSafe for NormalizedScope
impl Send for NormalizedScope
impl Sync for NormalizedScope
impl Unpin for NormalizedScope
impl UnsafeUnpin for NormalizedScope
impl UnwindSafe for NormalizedScope
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