pub struct ChioScope {
pub grants: Vec<ToolGrant>,
pub resource_grants: Vec<ResourceGrant>,
pub prompt_grants: Vec<PromptGrant>,
}Expand description
What a capability token authorizes.
Fields§
§grants: Vec<ToolGrant>Individual tool grants.
resource_grants: Vec<ResourceGrant>Individual resource grants.
prompt_grants: Vec<PromptGrant>Individual prompt grants.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChioScope
impl<'de> Deserialize<'de> for ChioScope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChioScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChioScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ChioScope
impl Serialize for ChioScope
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,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ChioScope
impl RefUnwindSafe for ChioScope
impl Send for ChioScope
impl Sync for ChioScope
impl Unpin for ChioScope
impl UnsafeUnpin for ChioScope
impl UnwindSafe for ChioScope
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