pub struct FeatureSetDefaults {
pub defaults: Vec<FeatureSetEditionDefault>,
pub minimum_edition: Option<i32>,
pub maximum_edition: Option<i32>,
}Expand description
A compiled specification for the defaults of a set of features. These messages are generated from FeatureSet extensions and can be used to seed feature resolution. The resolution with this object becomes a simple search for the closest matching edition, followed by proto merges.
Fields§
§defaults: Vec<FeatureSetEditionDefault>§minimum_edition: Option<i32>The minimum supported edition (inclusive) when this was constructed. Editions before this will not have defaults.
maximum_edition: Option<i32>The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.
Implementations§
Source§impl FeatureSetDefaults
impl FeatureSetDefaults
Sourcepub fn minimum_edition(&self) -> Edition
pub fn minimum_edition(&self) -> Edition
Returns the enum value of minimum_edition, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_minimum_edition(&mut self, value: Edition)
pub fn set_minimum_edition(&mut self, value: Edition)
Sets minimum_edition to the provided enum value.
Sourcepub fn maximum_edition(&self) -> Edition
pub fn maximum_edition(&self) -> Edition
Returns the enum value of maximum_edition, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_maximum_edition(&mut self, value: Edition)
pub fn set_maximum_edition(&mut self, value: Edition)
Sets maximum_edition to the provided enum value.
Trait Implementations§
Source§impl Clone for FeatureSetDefaults
impl Clone for FeatureSetDefaults
Source§fn clone(&self) -> FeatureSetDefaults
fn clone(&self) -> FeatureSetDefaults
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FeatureSetDefaults
impl Debug for FeatureSetDefaults
Source§impl Default for FeatureSetDefaults
impl Default for FeatureSetDefaults
Source§impl Message for FeatureSetDefaults
impl Message for FeatureSetDefaults
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.