pub struct GovernanceSettingMergePolicy {
pub setting_key: String,
pub semantics: i32,
}Fields§
§setting_key: StringThe canonical protobuf field name in SpoolSettings. Entries are sorted
by UTF-8 bytes in canonical_owner_governance_state_v1. Unknown, missing,
and duplicate keys fail closed.
semantics: i32Implementations§
Source§impl GovernanceSettingMergePolicy
impl GovernanceSettingMergePolicy
Sourcepub fn semantics(&self) -> GovernanceSettingMergeSemantics
pub fn semantics(&self) -> GovernanceSettingMergeSemantics
Returns the enum value of semantics, or the default if the field is set to an invalid enum value.
Sourcepub fn set_semantics(&mut self, value: GovernanceSettingMergeSemantics)
pub fn set_semantics(&mut self, value: GovernanceSettingMergeSemantics)
Sets semantics to the provided enum value.
Trait Implementations§
Source§impl Clone for GovernanceSettingMergePolicy
impl Clone for GovernanceSettingMergePolicy
Source§fn clone(&self) -> GovernanceSettingMergePolicy
fn clone(&self) -> GovernanceSettingMergePolicy
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 GovernanceSettingMergePolicy
impl Debug for GovernanceSettingMergePolicy
impl Eq for GovernanceSettingMergePolicy
Source§impl Hash for GovernanceSettingMergePolicy
impl Hash for GovernanceSettingMergePolicy
Source§impl Message for GovernanceSettingMergePolicy
impl Message for GovernanceSettingMergePolicy
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for GovernanceSettingMergePolicy
Auto Trait Implementations§
impl Freeze for GovernanceSettingMergePolicy
impl RefUnwindSafe for GovernanceSettingMergePolicy
impl Send for GovernanceSettingMergePolicy
impl Sync for GovernanceSettingMergePolicy
impl Unpin for GovernanceSettingMergePolicy
impl UnsafeUnpin for GovernanceSettingMergePolicy
impl UnwindSafe for GovernanceSettingMergePolicy
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