pub struct SubjectAttrs {
pub id_tag: Box<str>,
pub roles: Vec<Box<str>>,
pub tier: Box<str>,
pub quota_remaining_bytes: Box<str>,
pub rate_limit_remaining: Box<str>,
pub banned: bool,
pub email_verified: bool,
}Expand description
Subject attributes for ABAC (CREATE operations)
Used to evaluate collection-level permissions for operations that don’t yet have a specific object (like file upload, post creation).
Fields§
§id_tag: Box<str>§roles: Vec<Box<str>>§tier: Box<str>§quota_remaining_bytes: Box<str>§rate_limit_remaining: Box<str>§banned: bool§email_verified: boolTrait Implementations§
Source§impl AttrSet for SubjectAttrs
impl AttrSet for SubjectAttrs
Source§impl Clone for SubjectAttrs
impl Clone for SubjectAttrs
Source§fn clone(&self) -> SubjectAttrs
fn clone(&self) -> SubjectAttrs
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 SubjectAttrs
impl RefUnwindSafe for SubjectAttrs
impl Send for SubjectAttrs
impl Sync for SubjectAttrs
impl Unpin for SubjectAttrs
impl UnsafeUnpin for SubjectAttrs
impl UnwindSafe for SubjectAttrs
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