pub struct RoleGuard {
pub required: AuthRole,
}Expand description
GraphQL field guard that requires a minimum AuthRole. The role
is read from async_graphql::Context::data::<AuthRole>().
Fields§
§required: AuthRoleMinimum role required to access the field.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoleGuard
impl RefUnwindSafe for RoleGuard
impl Send for RoleGuard
impl Sync for RoleGuard
impl Unpin for RoleGuard
impl UnsafeUnpin for RoleGuard
impl UnwindSafe for RoleGuard
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