pub struct EngineConfig {
pub enable_role_hierarchy: bool,
pub enable_wildcard: bool,
pub max_role_depth: usize,
}Expand description
引擎行为配置。
Fields§
§enable_role_hierarchy: bool是否通过 AuthorizationSource::parent_roles 启用角色继承遍历。
enable_wildcard: bool是否启用完整资源/动作通配符匹配。
max_role_depth: usize最大角色继承深度。
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
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 EngineConfig
impl Debug for EngineConfig
Source§impl Default for EngineConfig
impl Default for EngineConfig
Source§impl PartialEq for EngineConfig
impl PartialEq for EngineConfig
Source§fn eq(&self, other: &EngineConfig) -> bool
fn eq(&self, other: &EngineConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EngineConfig
impl StructuralPartialEq for EngineConfig
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnsafeUnpin for EngineConfig
impl UnwindSafe for EngineConfig
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