#[non_exhaustive]pub struct EnumValueOptions {
pub deprecated: bool,
pub features: Option<FeatureSet>,
pub debug_redact: bool,
pub feature_support: Option<FeatureSupport>,
pub uninterpreted_option: Vec<UninterpretedOption>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.deprecated: boolIs this enum value deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum value, or it will be completely ignored; in the very least, this is a formalization for deprecating enum values.
features: Option<FeatureSet>Any features defined in the specific edition.
debug_redact: boolIndicate that fields annotated with this enum value should not be printed out when using debug formats, e.g. when the field contains sensitive credentials.
feature_support: Option<FeatureSupport>Information about the support window of a feature value.
uninterpreted_option: Vec<UninterpretedOption>The parser stores options it doesn’t recognize here. See above.
Implementations§
Source§impl EnumValueOptions
impl EnumValueOptions
pub fn new() -> Self
Sourcepub fn set_deprecated<T: Into<bool>>(self, v: T) -> Self
pub fn set_deprecated<T: Into<bool>>(self, v: T) -> Self
Sets the value of deprecated.
Sourcepub fn set_features<T>(self, v: T) -> Selfwhere
T: Into<FeatureSet>,
pub fn set_features<T>(self, v: T) -> Selfwhere
T: Into<FeatureSet>,
Sets the value of features.
Sourcepub fn set_or_clear_features<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSet>,
pub fn set_or_clear_features<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSet>,
Sets or clears the value of features.
Sourcepub fn set_debug_redact<T: Into<bool>>(self, v: T) -> Self
pub fn set_debug_redact<T: Into<bool>>(self, v: T) -> Self
Sets the value of debug_redact.
Sourcepub fn set_feature_support<T>(self, v: T) -> Selfwhere
T: Into<FeatureSupport>,
pub fn set_feature_support<T>(self, v: T) -> Selfwhere
T: Into<FeatureSupport>,
Sets the value of feature_support.
Sourcepub fn set_or_clear_feature_support<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSupport>,
pub fn set_or_clear_feature_support<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSupport>,
Sets or clears the value of feature_support.
Sourcepub fn set_uninterpreted_option<T, V>(self, v: T) -> Self
pub fn set_uninterpreted_option<T, V>(self, v: T) -> Self
Sets the value of uninterpreted_option.
Trait Implementations§
Source§impl Clone for EnumValueOptions
impl Clone for EnumValueOptions
Source§fn clone(&self) -> EnumValueOptions
fn clone(&self) -> EnumValueOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more