#[non_exhaustive]pub struct FeatureSetEditionDefault {
pub edition: Edition,
pub overridable_features: Option<FeatureSet>,
pub fixed_features: Option<FeatureSet>,
/* private fields */
}Expand description
A map from every known edition with a unique set of defaults to its defaults. Not all editions may be contained here. For a given edition, the defaults at the closest matching edition ordered at or before it should be used. This field must be in strict ascending order by edition.
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.edition: Edition§overridable_features: Option<FeatureSet>Defaults of features that can be overridden in this edition.
fixed_features: Option<FeatureSet>Defaults of features that can’t be overridden in this edition.
Implementations§
Source§impl FeatureSetEditionDefault
impl FeatureSetEditionDefault
pub fn new() -> Self
Sourcepub fn set_edition<T: Into<Edition>>(self, v: T) -> Self
pub fn set_edition<T: Into<Edition>>(self, v: T) -> Self
Sourcepub fn set_overridable_features<T>(self, v: T) -> Selfwhere
T: Into<FeatureSet>,
pub fn set_overridable_features<T>(self, v: T) -> Selfwhere
T: Into<FeatureSet>,
Sets the value of overridable_features.
§Example
ⓘ
use google_cloud_wkt::FeatureSet;
let x = FeatureSetEditionDefault::new().set_overridable_features(FeatureSet::default()/* use setters */);Sourcepub fn set_or_clear_overridable_features<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSet>,
pub fn set_or_clear_overridable_features<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSet>,
Sets or clears the value of overridable_features.
§Example
ⓘ
use google_cloud_wkt::FeatureSet;
let x = FeatureSetEditionDefault::new().set_or_clear_overridable_features(Some(FeatureSet::default()/* use setters */));
let x = FeatureSetEditionDefault::new().set_or_clear_overridable_features(None::<FeatureSet>);Sourcepub fn set_fixed_features<T>(self, v: T) -> Selfwhere
T: Into<FeatureSet>,
pub fn set_fixed_features<T>(self, v: T) -> Selfwhere
T: Into<FeatureSet>,
Sets the value of fixed_features.
§Example
ⓘ
use google_cloud_wkt::FeatureSet;
let x = FeatureSetEditionDefault::new().set_fixed_features(FeatureSet::default()/* use setters */);Sourcepub fn set_or_clear_fixed_features<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSet>,
pub fn set_or_clear_fixed_features<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSet>,
Sets or clears the value of fixed_features.
§Example
ⓘ
use google_cloud_wkt::FeatureSet;
let x = FeatureSetEditionDefault::new().set_or_clear_fixed_features(Some(FeatureSet::default()/* use setters */));
let x = FeatureSetEditionDefault::new().set_or_clear_fixed_features(None::<FeatureSet>);Trait Implementations§
Source§impl Clone for FeatureSetEditionDefault
impl Clone for FeatureSetEditionDefault
Source§fn clone(&self) -> FeatureSetEditionDefault
fn clone(&self) -> FeatureSetEditionDefault
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 FeatureSetEditionDefault
impl Debug for FeatureSetEditionDefault
Source§impl Default for FeatureSetEditionDefault
impl Default for FeatureSetEditionDefault
Source§fn default() -> FeatureSetEditionDefault
fn default() -> FeatureSetEditionDefault
Returns the “default value” for a type. Read more
Source§impl Message for FeatureSetEditionDefault
impl Message for FeatureSetEditionDefault
Source§impl PartialEq for FeatureSetEditionDefault
impl PartialEq for FeatureSetEditionDefault
impl StructuralPartialEq for FeatureSetEditionDefault
Auto Trait Implementations§
impl Freeze for FeatureSetEditionDefault
impl RefUnwindSafe for FeatureSetEditionDefault
impl Send for FeatureSetEditionDefault
impl Sync for FeatureSetEditionDefault
impl Unpin for FeatureSetEditionDefault
impl UnwindSafe for FeatureSetEditionDefault
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