pub struct RoleConfig {
pub name: String,
pub allow_tools: Vec<String>,
pub deny_tools: Vec<String>,
}Expand description
RBAC role definition.
Fields§
§name: StringRole name, referenced by RoleMappingConfig.
allow_tools: Vec<String>Tools this role can access (namespaced, e.g. “files/read_file”)
deny_tools: Vec<String>Tools this role cannot access
Trait Implementations§
Source§impl Debug for RoleConfig
impl Debug for RoleConfig
Source§impl<'de> Deserialize<'de> for RoleConfig
impl<'de> Deserialize<'de> for RoleConfig
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
Auto Trait Implementations§
impl Freeze for RoleConfig
impl RefUnwindSafe for RoleConfig
impl Send for RoleConfig
impl Sync for RoleConfig
impl Unpin for RoleConfig
impl UnsafeUnpin for RoleConfig
impl UnwindSafe for RoleConfig
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