pub enum AccessMode {
Public,
Authenticated,
Authorized(Arc<dyn SecurityPolicy>),
}Expand description
Access classification for a compiled route.
Public needs no authentication. Authenticated requires a principal but
no authorization policy. Authorized runs a policy against the
authenticated principal.
exhaustive-by-contract: closed enforcement model; modes are kernel semantics, additions are deliberate breaking changes.
Variants§
Trait Implementations§
Source§impl Clone for AccessMode
impl Clone for AccessMode
Auto Trait Implementations§
impl !RefUnwindSafe for AccessMode
impl !UnwindSafe for AccessMode
impl Freeze for AccessMode
impl Send for AccessMode
impl Sync for AccessMode
impl Unpin for AccessMode
impl UnsafeUnpin for AccessMode
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