pub struct Invariant {
pub scope: String,
pub operation: String,
pub resource_type: String,
pub resource_id: String,
}Expand description
One executable authority invariant: (scope, operation, resourceType, resourceId).
The logical JSON form uses camelCase member names (resourceType,
resourceId), matching the application-facing Context of Authority.
Fields§
§scope: StringThe authority scope, e.g. documents:read:document-42.
operation: StringThe operation the invariant permits.
resource_type: StringThe resource type the operation applies to.
resource_id: StringThe resource identifier, or "*" for the whole type.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invariant
impl<'de> Deserialize<'de> for Invariant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Invariant
Source§impl From<&Invariant> for InvariantTuple
impl From<&Invariant> for InvariantTuple
Source§impl Ord for Invariant
impl Ord for Invariant
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
Source§impl PartialOrd for Invariant
impl PartialOrd for Invariant
impl StructuralPartialEq for Invariant
Auto Trait Implementations§
impl Freeze for Invariant
impl RefUnwindSafe for Invariant
impl Send for Invariant
impl Sync for Invariant
impl Unpin for Invariant
impl UnsafeUnpin for Invariant
impl UnwindSafe for Invariant
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