Struct actix_web_grants::permissions::AuthDetails
source · pub struct AuthDetails<T = String>where
T: PartialEq,{
pub permissions: Vec<T>,
}
Fields§
§permissions: Vec<T>
Implementations§
source§impl<T> AuthDetails<T>where
T: PartialEq + Clone,
impl<T> AuthDetails<T>where T: PartialEq + Clone,
pub fn new(permissions: Vec<T>) -> AuthDetails<T>
Trait Implementations§
source§impl<T> Clone for AuthDetails<T>where
T: PartialEq + Clone,
impl<T> Clone for AuthDetails<T>where T: PartialEq + Clone,
source§fn clone(&self) -> AuthDetails<T>
fn clone(&self) -> AuthDetails<T>
Returns a copy 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 moresource§impl<T: PartialEq + Clone + 'static> FromRequest for AuthDetails<T>
impl<T: PartialEq + Clone + 'static> FromRequest for AuthDetails<T>
source§impl<T: PartialEq + Clone> PermissionsCheck<&T> for AuthDetails<T>
impl<T: PartialEq + Clone> PermissionsCheck<&T> for AuthDetails<T>
fn has_permission(&self, permission: &T) -> bool
fn has_permissions(&self, permissions: &[&T]) -> bool
fn has_any_permission(&self, permissions: &[&T]) -> bool
source§impl PermissionsCheck<&str> for AuthDetails
impl PermissionsCheck<&str> for AuthDetails
fn has_permission(&self, permission: &str) -> bool
fn has_permissions(&self, permissions: &[&str]) -> bool
fn has_any_permission(&self, permissions: &[&str]) -> bool
source§impl<T: PartialEq + Clone> RolesCheck<&T> for AuthDetails<T>
impl<T: PartialEq + Clone> RolesCheck<&T> for AuthDetails<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for AuthDetails<T>where T: RefUnwindSafe,
impl<T> Send for AuthDetails<T>where T: Send,
impl<T> Sync for AuthDetails<T>where T: Sync,
impl<T> Unpin for AuthDetails<T>where T: Unpin,
impl<T> UnwindSafe for AuthDetails<T>where T: 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