pub struct EngineBuilder { /* private fields */ }Implementations§
Source§impl EngineBuilder
impl EngineBuilder
pub fn roles(self, roles: RoleGraph) -> Self
pub fn relations(self, schema: RelationSchema) -> Self
pub fn conditions(self, registry: ConditionRegistry) -> Self
pub fn strategy(self, strategy: impl Strategy + 'static) -> Self
pub fn override_with(self, rule: impl Override + 'static) -> Self
Sourcepub fn override_except<I, S>(
self,
rule: impl Override + 'static,
except: I,
) -> Self
pub fn override_except<I, S>( self, rule: impl Override + 'static, except: I, ) -> Self
Override that does not apply to the listed permissions or to the ones they grant (for example, the organization administrator does not delete another owner’s project).
pub fn max_relation_depth(self, depth: usize) -> Self
pub fn build(self) -> Result<Engine, EngineError>
Auto Trait Implementations§
impl !RefUnwindSafe for EngineBuilder
impl !UnwindSafe for EngineBuilder
impl Forget for EngineBuilder
impl Freeze for EngineBuilder
impl Move for EngineBuilder
impl Send for EngineBuilder
impl Sync for EngineBuilder
impl Unpin for EngineBuilder
impl UnsafeUnpin for EngineBuilder
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