pub enum PermissionType {
Create,
Read,
Update,
Delete,
Write,
}Expand description
The action a permission grants.
PHP: the $permission string of Permission
(Database::PERMISSION_*). PHP’s constructor also stores other
strings, which Permission::parse never produces; Rust cannot hold
them (a recorded deviation).
Variants§
Create
create
Read
read
Update
update
Delete
delete
Write
write: an aggregate of create, update and delete.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for PermissionType
impl AsRef<str> for PermissionType
Source§impl Clone for PermissionType
impl Clone for PermissionType
impl Copy for PermissionType
Source§impl Debug for PermissionType
impl Debug for PermissionType
impl Eq for PermissionType
Source§impl Hash for PermissionType
impl Hash for PermissionType
Source§impl PartialEq for PermissionType
impl PartialEq for PermissionType
impl StructuralPartialEq for PermissionType
Auto Trait Implementations§
impl Forget for PermissionType
impl Freeze for PermissionType
impl Move for PermissionType
impl RefUnwindSafe for PermissionType
impl Send for PermissionType
impl Sync for PermissionType
impl Unpin for PermissionType
impl UnsafeUnpin for PermissionType
impl UnwindSafe for PermissionType
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.