#[non_exhaustive]pub struct OneofOptions {
pub features: Option<FeatureSet>,
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.features: Option<FeatureSet>Any features defined in the specific edition.
uninterpreted_option: Vec<UninterpretedOption>The parser stores options it doesn’t recognize here. See above.
Implementations§
Source§impl OneofOptions
impl OneofOptions
pub fn new() -> 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_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 = OneofOptions::new()
.set_uninterpreted_option([
UninterpretedOption::default()/* use setters */,
UninterpretedOption::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for OneofOptions
impl Clone for OneofOptions
Source§fn clone(&self) -> OneofOptions
fn clone(&self) -> OneofOptions
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 OneofOptions
impl Debug for OneofOptions
Source§impl Default for OneofOptions
impl Default for OneofOptions
Source§fn default() -> OneofOptions
fn default() -> OneofOptions
Returns the “default value” for a type. Read more
Source§impl Message for OneofOptions
impl Message for OneofOptions
Source§impl PartialEq for OneofOptions
impl PartialEq for OneofOptions
impl StructuralPartialEq for OneofOptions
Auto Trait Implementations§
impl Freeze for OneofOptions
impl RefUnwindSafe for OneofOptions
impl Send for OneofOptions
impl Sync for OneofOptions
impl Unpin for OneofOptions
impl UnwindSafe for OneofOptions
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