pub struct EngineBuilder<S, C = NoCache> { /* private fields */ }Expand description
Builder for Engine.
Implementations§
Source§impl<S> EngineBuilder<S, NoCache>
impl<S> EngineBuilder<S, NoCache>
Source§impl<S, C> EngineBuilder<S, C>
impl<S, C> EngineBuilder<S, C>
Sourcepub fn enable_role_hierarchy(self, on: bool) -> Self
pub fn enable_role_hierarchy(self, on: bool) -> Self
Enables or disables role inheritance.
Sourcepub fn enable_wildcard(self, on: bool) -> Self
pub fn enable_wildcard(self, on: bool) -> Self
Enables or disables wildcard permission matching.
Sourcepub fn enable_super_admin(self, on: bool) -> Self
pub fn enable_super_admin(self, on: bool) -> Self
Enables or disables super-admin short-circuit checks.
Sourcepub fn max_inherit_depth(self, depth: usize) -> Self
pub fn max_inherit_depth(self, depth: usize) -> Self
Sets maximum inheritance depth.
Sourcepub fn permission_normalize(self, on: bool) -> Self
pub fn permission_normalize(self, on: bool) -> Self
Enables or disables permission normalization for matching.
Sourcepub fn cache<C2: Cache>(self, cache: C2) -> EngineBuilder<S, C2>
pub fn cache<C2: Cache>(self, cache: C2) -> EngineBuilder<S, C2>
Sets the cache implementation.
Auto Trait Implementations§
impl<S, C> Freeze for EngineBuilder<S, C>
impl<S, C> RefUnwindSafe for EngineBuilder<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for EngineBuilder<S, C>
impl<S, C> Sync for EngineBuilder<S, C>
impl<S, C> Unpin for EngineBuilder<S, C>
impl<S, C> UnsafeUnpin for EngineBuilder<S, C>where
S: UnsafeUnpin,
C: UnsafeUnpin,
impl<S, C> UnwindSafe for EngineBuilder<S, C>where
S: UnwindSafe,
C: UnwindSafe,
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