pub enum Scope {
Write,
Read,
Delete,
Legal,
Audit,
Admin,
}Expand description
What a key may do.
Variants§
Write
Stores vCons: POST /vcons and PUT /vcons/{uuid}.
Read
Lists and reads vCons: GET /vcons and GET /vcons/{uuid}.
Delete
Deletes vCons: DELETE /vcons/{uuid}.
Legal
The /legal/ routes: deleted vCons, old versions, restore, holds.
Audit
Reads the tenant’s own audit log.
Admin
Manages tenants and keys; held only by an operator key.
Implementations§
Trait Implementations§
impl Copy for Scope
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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.