pub struct RbacPolicy {
pub role: Role,
pub allowed_actions: HashSet<Action>,
pub resource_patterns: Vec<String>,
pub max_concurrent_agents: usize,
}Expand description
RBAC policy defining what a role can do.
Fields§
§role: RoleThe role this policy applies to.
allowed_actions: HashSet<Action>Set of actions this role is allowed to perform.
resource_patterns: Vec<String>Glob patterns for accessible resources.
max_concurrent_agents: usizeMaximum number of concurrent agents for this role.
Implementations§
Trait Implementations§
Source§impl Clone for RbacPolicy
impl Clone for RbacPolicy
Source§fn clone(&self) -> RbacPolicy
fn clone(&self) -> RbacPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RbacPolicy
impl Debug for RbacPolicy
Source§impl<'de> Deserialize<'de> for RbacPolicy
impl<'de> Deserialize<'de> for RbacPolicy
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 RbacPolicy
impl RefUnwindSafe for RbacPolicy
impl Send for RbacPolicy
impl Sync for RbacPolicy
impl Unpin for RbacPolicy
impl UnsafeUnpin for RbacPolicy
impl UnwindSafe for RbacPolicy
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