pub struct AuthorizationConfig {
pub enabled: bool,
pub default_permissions: Vec<Permission>,
pub role_mappings: HashMap<String, Vec<Permission>>,
}Expand description
Authorization configuration
Fields§
§enabled: bool§default_permissions: Vec<Permission>§role_mappings: HashMap<String, Vec<Permission>>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