pub struct AuthorizationConfig {
pub rbac_enabled: bool,
pub default_roles: Vec<String>,
pub inheritance_rules: HashMap<String, Vec<String>>,
pub resource_permissions: HashMap<String, Vec<String>>,
}Expand description
Authorization configuration
Fields§
§rbac_enabled: boolEnable role-based access control
default_roles: Vec<String>Default roles for new users
inheritance_rules: HashMap<String, Vec<String>>Permission inheritance rules
resource_permissions: HashMap<String, Vec<String>>Resource-based permissions
Trait Implementations§
Source§impl Clone for AuthorizationConfig
impl Clone for AuthorizationConfig
Source§fn clone(&self) -> AuthorizationConfig
fn clone(&self) -> AuthorizationConfig
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 AuthorizationConfig
impl Debug for AuthorizationConfig
Source§impl<'de> Deserialize<'de> for AuthorizationConfig
impl<'de> Deserialize<'de> for AuthorizationConfig
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 AuthorizationConfig
impl RefUnwindSafe for AuthorizationConfig
impl Send for AuthorizationConfig
impl Sync for AuthorizationConfig
impl Unpin for AuthorizationConfig
impl UnwindSafe for AuthorizationConfig
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