pub struct AuthorizerSet { /* private fields */ }Expand description
A set of IDynamicAuthorizer instances collected from the DI container.
Created automatically in HostBuilder::build() when one or more
IDynamicAuthorizer implementations are registered. If none are registered,
this is None and no dynamic authorization checks run.
Implementations§
Source§impl AuthorizerSet
impl AuthorizerSet
Sourcepub fn new(authorizers: Vec<Arc<dyn IDynamicAuthorizer>>) -> AuthorizerSet
pub fn new(authorizers: Vec<Arc<dyn IDynamicAuthorizer>>) -> AuthorizerSet
Create a new set from a vector of authorizers.
Run all registered authorizers in sequence.
Returns Ok(()) if ALL authorizers pass. Returns the first Err if any denies.
Trait Implementations§
Source§impl Clone for AuthorizerSet
impl Clone for AuthorizerSet
Source§fn clone(&self) -> AuthorizerSet
fn clone(&self) -> AuthorizerSet
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for AuthorizerSet
impl !UnwindSafe for AuthorizerSet
impl Freeze for AuthorizerSet
impl Send for AuthorizerSet
impl Sync for AuthorizerSet
impl Unpin for AuthorizerSet
impl UnsafeUnpin for AuthorizerSet
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