#[repr(i32)]pub enum GovernanceSettingMergeSemantics {
Unspecified = 0,
LastWriterWins = 1,
GrowOnlySetUnion = 2,
}Expand description
Merge behavior is explicit signed state, not an implementation convention. A verifier owns the canonical behavior for each known setting key and MUST reject a state that omits it, duplicates it, or declares another behavior. The signed declaration therefore cannot downgrade a grow-only key.
Variants§
Implementations§
Source§impl GovernanceSettingMergeSemantics
impl GovernanceSettingMergeSemantics
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of GovernanceSettingMergeSemantics.
Sourcepub fn from_i32(value: i32) -> Option<GovernanceSettingMergeSemantics>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<GovernanceSettingMergeSemantics>
Use the TryFrom<i32> implementation instead
Converts an i32 to a GovernanceSettingMergeSemantics, or None if value is not a valid variant.
Source§impl GovernanceSettingMergeSemantics
impl GovernanceSettingMergeSemantics
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for GovernanceSettingMergeSemantics
impl Clone for GovernanceSettingMergeSemantics
Source§fn clone(&self) -> GovernanceSettingMergeSemantics
fn clone(&self) -> GovernanceSettingMergeSemantics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more