pub enum InvariantSpec {
CatalogConformance,
NoSelfManagement,
RequirePermission {
permission: String,
resource: Resource,
},
NoLockout {
permissions: Vec<String>,
members: Vec<Subject>,
resource: Resource,
},
Forbid {
subject: SubjectMatcher,
permissions: Vec<String>,
},
}Expand description
Ready-made governance invariants, in declarative form.
Variants§
Implementations§
Source§impl InvariantSpec
impl InvariantSpec
pub fn add_to(&self, governance: Governance) -> Governance
Trait Implementations§
Source§impl Clone for InvariantSpec
impl Clone for InvariantSpec
Source§impl Debug for InvariantSpec
impl Debug for InvariantSpec
Source§impl<'de> Deserialize<'de> for InvariantSpec
impl<'de> Deserialize<'de> for InvariantSpec
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
Source§impl<'a> FromIterator<&'a InvariantSpec> for Governance
impl<'a> FromIterator<&'a InvariantSpec> for Governance
Source§fn from_iter<I: IntoIterator<Item = &'a InvariantSpec>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = &'a InvariantSpec>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for InvariantSpec
impl PartialEq for InvariantSpec
Source§impl Serialize for InvariantSpec
impl Serialize for InvariantSpec
impl StructuralPartialEq for InvariantSpec
Auto Trait Implementations§
impl Forget for InvariantSpec
impl Freeze for InvariantSpec
impl Move for InvariantSpec
impl RefUnwindSafe for InvariantSpec
impl Send for InvariantSpec
impl Sync for InvariantSpec
impl Unpin for InvariantSpec
impl UnsafeUnpin for InvariantSpec
impl UnwindSafe for InvariantSpec
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