pub enum OperationGrant {
GraphAll,
GraphControl {
graph_id: String,
},
NodeControl {
graph_id: String,
node_id: String,
},
ReadScope {
graph_id: String,
},
}Expand description
Operation-scoped authorization grant.
Variants§
GraphAll
Full administrative control over all graphs.
GraphControl
Control over a specific graph instance.
NodeControl
Control over a specific node within a graph.
ReadScope
Read/inspect access to a specific graph.
Implementations§
Source§impl OperationGrant
impl OperationGrant
Sourcepub fn covers(&self, required: &OperationGrant) -> bool
pub fn covers(&self, required: &OperationGrant) -> bool
Whether this held grant covers the required grant.
Trait Implementations§
Source§impl Clone for OperationGrant
impl Clone for OperationGrant
Source§fn clone(&self) -> OperationGrant
fn clone(&self) -> OperationGrant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OperationGrant
impl Debug for OperationGrant
Source§impl<'de> Deserialize<'de> for OperationGrant
impl<'de> Deserialize<'de> for OperationGrant
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OperationGrant, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OperationGrant, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OperationGrant
Source§impl Hash for OperationGrant
impl Hash for OperationGrant
Source§impl Ord for OperationGrant
impl Ord for OperationGrant
Source§fn cmp(&self, other: &OperationGrant) -> Ordering
fn cmp(&self, other: &OperationGrant) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OperationGrant
impl PartialEq for OperationGrant
Source§impl PartialOrd for OperationGrant
impl PartialOrd for OperationGrant
Source§impl Serialize for OperationGrant
impl Serialize for OperationGrant
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for OperationGrant
Auto Trait Implementations§
impl Forget for OperationGrant
impl Freeze for OperationGrant
impl Move for OperationGrant
impl RefUnwindSafe for OperationGrant
impl Send for OperationGrant
impl Sync for OperationGrant
impl Unpin for OperationGrant
impl UnsafeUnpin for OperationGrant
impl UnwindSafe for OperationGrant
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.