#[non_exhaustive]pub struct RoleConfig {
pub name: String,
pub description: Option<String>,
pub allow: Vec<String>,
pub deny: Vec<String>,
pub hosts: Vec<String>,
pub argument_allowlists: Vec<ArgumentAllowlist>,
}Expand description
A single role definition.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRole identifier referenced from identities (API keys, mTLS, JWT claims).
description: Option<String>Human-readable description, surfaced in diagnostics only.
allow: Vec<String>Allowed operations. ["*"] means all operations.
deny: Vec<String>Explicitly denied operations (overrides allow).
hosts: Vec<String>Host name glob patterns this role can access. ["*"] means all hosts.
argument_allowlists: Vec<ArgumentAllowlist>Per-tool argument constraints. When a tool call matches, the
specified argument’s first whitespace-delimited token (or its
/-basename) must appear in the allowlist.
Implementations§
Source§impl RoleConfig
impl RoleConfig
Trait Implementations§
Source§impl Clone for RoleConfig
impl Clone for RoleConfig
Source§fn clone(&self) -> RoleConfig
fn clone(&self) -> RoleConfig
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 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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