pub struct ScopeLayer { /* private fields */ }Expand description
Tower Layer that checks for a required scope on the verified API key.
Created by require_scope. Apply as a .route_layer() after
ApiKeyLayer.
Trait Implementations§
Source§impl Clone for ScopeLayer
impl Clone for ScopeLayer
Source§fn clone(&self) -> ScopeLayer
fn clone(&self) -> ScopeLayer
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for ScopeLayer
impl RefUnwindSafe for ScopeLayer
impl Send for ScopeLayer
impl Sync for ScopeLayer
impl Unpin for ScopeLayer
impl UnsafeUnpin for ScopeLayer
impl UnwindSafe for ScopeLayer
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