#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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: Into<Option<FeatureSet>>>(self, v: T) -> Self
pub fn set_features<T: Into<Option<FeatureSet>>>(self, v: T) -> Self
Sets 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: Into<Option<FeatureSupport>>>(self, v: T) -> Self
pub fn set_feature_support<T: Into<Option<FeatureSupport>>>(self, v: T) -> Self
Sets 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
Returns a copy of the value. Read more
1.0.0 · 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 EnumValueOptions
impl Debug for EnumValueOptions
Source§impl Default for EnumValueOptions
impl Default for EnumValueOptions
Source§fn default() -> EnumValueOptions
fn default() -> EnumValueOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnumValueOptionswhere
EnumValueOptions: Default,
impl<'de> Deserialize<'de> for EnumValueOptionswhere
EnumValueOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for EnumValueOptions
impl Message for EnumValueOptions
Source§impl PartialEq for EnumValueOptions
impl PartialEq for EnumValueOptions
Source§impl Serialize for EnumValueOptions
impl Serialize for EnumValueOptions
impl StructuralPartialEq for EnumValueOptions
Auto Trait Implementations§
impl Freeze for EnumValueOptions
impl RefUnwindSafe for EnumValueOptions
impl Send for EnumValueOptions
impl Sync for EnumValueOptions
impl Unpin for EnumValueOptions
impl UnwindSafe for EnumValueOptions
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