#[non_exhaustive]pub struct ModelFeatures {
pub model_feature: Vec<ModelFeature>,
/* private fields */
}Expand description
Represents the collection of features belonging to a model
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.model_feature: Vec<ModelFeature>Repeated field that contains all features of the model
Implementations§
Source§impl ModelFeatures
impl ModelFeatures
pub fn new() -> Self
Sourcepub fn set_model_feature<T, V>(self, v: T) -> Self
pub fn set_model_feature<T, V>(self, v: T) -> Self
Sets the value of model_feature.
§Example
ⓘ
use google_cloud_speech_v2::model::ModelFeature;
let x = ModelFeatures::new()
.set_model_feature([
ModelFeature::default()/* use setters */,
ModelFeature::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for ModelFeatures
impl Clone for ModelFeatures
Source§fn clone(&self) -> ModelFeatures
fn clone(&self) -> ModelFeatures
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 ModelFeatures
impl Debug for ModelFeatures
Source§impl Default for ModelFeatures
impl Default for ModelFeatures
Source§fn default() -> ModelFeatures
fn default() -> ModelFeatures
Returns the “default value” for a type. Read more
Source§impl Message for ModelFeatures
impl Message for ModelFeatures
Source§impl PartialEq for ModelFeatures
impl PartialEq for ModelFeatures
impl StructuralPartialEq for ModelFeatures
Auto Trait Implementations§
impl Freeze for ModelFeatures
impl RefUnwindSafe for ModelFeatures
impl Send for ModelFeatures
impl Sync for ModelFeatures
impl Unpin for ModelFeatures
impl UnwindSafe for ModelFeatures
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