pub struct CommitmentRules {
pub authority: String,
pub designated_roles: Vec<String>,
pub require_vote_quorum: bool,
}Expand description
Commitment rules shared across all mode policy schemas (RFC-MACP-0012).
This commitment sub-object appears in every mode’s rule schema and is read
directly by the modes (to authorize who may emit a Commitment), so it
lives in core rather than in macp-policy.
Fields§
§designated_roles: Vec<String>§require_vote_quorum: boolTrait Implementations§
Source§impl Clone for CommitmentRules
impl Clone for CommitmentRules
Source§fn clone(&self) -> CommitmentRules
fn clone(&self) -> CommitmentRules
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 CommitmentRules
impl Debug for CommitmentRules
Source§impl Default for CommitmentRules
impl Default for CommitmentRules
Source§impl<'de> Deserialize<'de> for CommitmentRules
impl<'de> Deserialize<'de> for CommitmentRules
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
Auto Trait Implementations§
impl Freeze for CommitmentRules
impl RefUnwindSafe for CommitmentRules
impl Send for CommitmentRules
impl Sync for CommitmentRules
impl Unpin for CommitmentRules
impl UnsafeUnpin for CommitmentRules
impl UnwindSafe for CommitmentRules
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