pub enum GovernanceLevel {
Any,
Registered,
Owner,
Approve,
}Expand description
Who is permitted to perform a governed action.
Stored inside a namespace standard’s metadata.governance and consulted
by Task 1.9 (enforcement) + Task 1.10 (approver types). Task 1.8 only
defines the shape + validation — no runtime enforcement yet.
Variants§
Any
Any caller may perform the action (no gate).
Registered
Caller must be a registered agent (see Task 1.3 _agents namespace).
Owner
Only the memory’s original metadata.agent_id owner may perform the action.
Approve
Action requires explicit approval by an ApproverType (handled in 1.9 + 1.10).
Implementations§
Trait Implementations§
Source§impl Clone for GovernanceLevel
impl Clone for GovernanceLevel
Source§fn clone(&self) -> GovernanceLevel
fn clone(&self) -> GovernanceLevel
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 GovernanceLevel
impl Debug for GovernanceLevel
Source§impl<'de> Deserialize<'de> for GovernanceLevel
impl<'de> Deserialize<'de> for GovernanceLevel
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 PartialEq for GovernanceLevel
impl PartialEq for GovernanceLevel
Source§impl Serialize for GovernanceLevel
impl Serialize for GovernanceLevel
impl Eq for GovernanceLevel
impl StructuralPartialEq for GovernanceLevel
Auto Trait Implementations§
impl Freeze for GovernanceLevel
impl RefUnwindSafe for GovernanceLevel
impl Send for GovernanceLevel
impl Sync for GovernanceLevel
impl Unpin for GovernanceLevel
impl UnsafeUnpin for GovernanceLevel
impl UnwindSafe for GovernanceLevel
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more