pub enum ProtectionLevel {
None,
Standard,
High,
Critical,
ReadOnly,
}
Expand description
Protection levels with increasing restrictiveness
Variants§
None
No protection - all edits allowed
Standard
Standard protection - basic constraints
High
High protection - strict constraints
Critical
Critical protection - minimal allowed changes
ReadOnly
Read-only - no modifications allowed
Trait Implementations§
Source§impl Clone for ProtectionLevel
impl Clone for ProtectionLevel
Source§fn clone(&self) -> ProtectionLevel
fn clone(&self) -> ProtectionLevel
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 moreSource§impl Debug for ProtectionLevel
impl Debug for ProtectionLevel
Source§impl Ord for ProtectionLevel
impl Ord for ProtectionLevel
Source§fn cmp(&self, other: &ProtectionLevel) -> Ordering
fn cmp(&self, other: &ProtectionLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProtectionLevel
impl PartialEq for ProtectionLevel
Source§impl PartialOrd for ProtectionLevel
impl PartialOrd for ProtectionLevel
impl Eq for ProtectionLevel
impl StructuralPartialEq for ProtectionLevel
Auto Trait Implementations§
impl Freeze for ProtectionLevel
impl RefUnwindSafe for ProtectionLevel
impl Send for ProtectionLevel
impl Sync for ProtectionLevel
impl Unpin for ProtectionLevel
impl UnwindSafe for ProtectionLevel
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.