#[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
Sourcepub fn set_features<T>(self, v: T) -> Selfwhere
T: Into<FeatureSet>,
pub fn set_features<T>(self, v: T) -> Selfwhere
T: Into<FeatureSet>,
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>,
Sourcepub fn set_debug_redact<T: Into<bool>>(self, v: T) -> Self
pub fn set_debug_redact<T: Into<bool>>(self, v: T) -> Self
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.
§Example
ⓘ
use google_cloud_wkt::field_options::FeatureSupport;
let x = EnumValueOptions::new().set_feature_support(FeatureSupport::default()/* use setters */);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.
§Example
ⓘ
use google_cloud_wkt::field_options::FeatureSupport;
let x = EnumValueOptions::new().set_or_clear_feature_support(Some(FeatureSupport::default()/* use setters */));
let x = EnumValueOptions::new().set_or_clear_feature_support(None::<FeatureSupport>);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.
§Example
ⓘ
use google_cloud_wkt::UninterpretedOption;
let x = EnumValueOptions::new()
.set_uninterpreted_option([
UninterpretedOption::default()/* use setters */,
UninterpretedOption::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for EnumValueOptions
impl Clone for EnumValueOptions
Source§fn clone(&self) -> EnumValueOptions
fn clone(&self) -> EnumValueOptions
Returns a duplicate 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 Message for EnumValueOptions
impl Message for EnumValueOptions
Source§impl PartialEq for EnumValueOptions
impl PartialEq 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