pub struct ProtoType { /* private fields */ }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.
Implementations§
Source§impl ProtoType
impl ProtoType
Sourcepub const fn file_descriptor() -> &'static ProtoType
pub const fn file_descriptor() -> &'static ProtoType
Returns the file descriptor for google/protobuf/descriptor.proto.
Sourcepub const fn descriptor_proto() -> &'static ProtoType
pub const fn descriptor_proto() -> &'static ProtoType
Returns the descriptor for FeatureSetDefaults.
pub const fn defaults(&self) -> &[TypedMessage<ProtoType>]
pub fn defaults_mut(&mut self) -> &mut RepeatedField<TypedMessage<ProtoType>>
pub fn add_defaults( &mut self, arena: &mut Arena<'_>, ) -> Result<&mut ProtoType, Error<LayoutError>>
Sourcepub const fn has_minimum_edition(&self) -> bool
pub const fn has_minimum_edition(&self) -> bool
Returns whether the minimum_edition field is set.
Sourcepub const fn minimum_edition(&self) -> Option<Edition>
pub const fn minimum_edition(&self) -> Option<Edition>
The minimum supported edition (inclusive) when this was constructed. Editions before this will not have defaults.
Sourcepub fn set_minimum_edition(&mut self, value: Edition)
pub fn set_minimum_edition(&mut self, value: Edition)
The minimum supported edition (inclusive) when this was constructed. Editions before this will not have defaults.
pub fn set_optional_minimum_edition(&mut self, value: Option<Edition>)
Sourcepub fn clear_minimum_edition(&mut self)
pub fn clear_minimum_edition(&mut self)
Clears the minimum_edition field.
Sourcepub const fn has_maximum_edition(&self) -> bool
pub const fn has_maximum_edition(&self) -> bool
Returns whether the maximum_edition field is set.
Sourcepub const fn maximum_edition(&self) -> Option<Edition>
pub const fn maximum_edition(&self) -> Option<Edition>
The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.
Sourcepub fn set_maximum_edition(&mut self, value: Edition)
pub fn set_maximum_edition(&mut self, value: Edition)
The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.
pub fn set_optional_maximum_edition(&mut self, value: Option<Edition>)
Sourcepub fn clear_maximum_edition(&mut self)
pub fn clear_maximum_edition(&mut self)
Clears the maximum_edition field.