pub enum RoleName {
Any,
Guests,
Users,
User,
Team,
Member,
Label,
Other(String),
}Expand description
The name of a role: one of the roles the library knows, or any other name (PHP parses and stores roles it does not know).
PHP: the $role string of Role (Validator\Roles::ROLE_*
for the known ones).
Variants§
Any
any: everyone.
Guests
guests: visitors without a session.
Users
users: every signed-in user, optionally by status dimension.
User
user: one user.
Team
team: the members of a team, optionally of one team role.
Member
member: one team membership.
Label
label: users carrying a label.
Other(String)
A role name the library does not know.
Implementations§
Trait Implementations§
impl Eq for RoleName
impl StructuralPartialEq for RoleName
Auto Trait Implementations§
impl Forget for RoleName
impl Freeze for RoleName
impl Move for RoleName
impl RefUnwindSafe for RoleName
impl Send for RoleName
impl Sync for RoleName
impl Unpin for RoleName
impl UnsafeUnpin for RoleName
impl UnwindSafe for RoleName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.