#[non_exhaustive]pub struct ExtensionRangeOptions {
pub uninterpreted_option: Vec<UninterpretedOption>,
pub declaration: Vec<Declaration>,
pub features: Option<FeatureSet>,
pub verification: VerificationState,
/* 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.uninterpreted_option: Vec<UninterpretedOption>The parser stores options it doesn’t recognize here. See above.
declaration: Vec<Declaration>For external users: DO NOT USE. We are in the process of open sourcing extension declaration and executing internal cleanups before it can be used externally.
features: Option<FeatureSet>Any features defined in the specific edition.
verification: VerificationStateThe verification state of the range. TODO: flip the default to DECLARATION once all empty ranges are marked as UNVERIFIED.
Implementations§
Source§impl ExtensionRangeOptions
impl ExtensionRangeOptions
pub fn new() -> Self
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 = ExtensionRangeOptions::new()
.set_uninterpreted_option([
UninterpretedOption::default()/* use setters */,
UninterpretedOption::default()/* use (different) setters */,
]);Sourcepub fn set_declaration<T, V>(self, v: T) -> Self
pub fn set_declaration<T, V>(self, v: T) -> Self
Sets the value of declaration.
§Example
ⓘ
use google_cloud_wkt::extension_range_options::Declaration;
let x = ExtensionRangeOptions::new()
.set_declaration([
Declaration::default()/* use setters */,
Declaration::default()/* use (different) setters */,
]);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_verification<T: Into<VerificationState>>(self, v: T) -> Self
pub fn set_verification<T: Into<VerificationState>>(self, v: T) -> Self
Sets the value of verification.
§Example
ⓘ
use google_cloud_wkt::extension_range_options::VerificationState;
let x0 = ExtensionRangeOptions::new().set_verification(VerificationState::Unverified);Trait Implementations§
Source§impl Clone for ExtensionRangeOptions
impl Clone for ExtensionRangeOptions
Source§fn clone(&self) -> ExtensionRangeOptions
fn clone(&self) -> ExtensionRangeOptions
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 ExtensionRangeOptions
impl Debug for ExtensionRangeOptions
Source§impl Default for ExtensionRangeOptions
impl Default for ExtensionRangeOptions
Source§fn default() -> ExtensionRangeOptions
fn default() -> ExtensionRangeOptions
Returns the “default value” for a type. Read more
Source§impl Message for ExtensionRangeOptions
impl Message for ExtensionRangeOptions
Source§impl PartialEq for ExtensionRangeOptions
impl PartialEq for ExtensionRangeOptions
impl StructuralPartialEq for ExtensionRangeOptions
Auto Trait Implementations§
impl Freeze for ExtensionRangeOptions
impl RefUnwindSafe for ExtensionRangeOptions
impl Send for ExtensionRangeOptions
impl Sync for ExtensionRangeOptions
impl Unpin for ExtensionRangeOptions
impl UnwindSafe for ExtensionRangeOptions
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