#[non_exhaustive]pub struct ModelMetadata {
pub model_features: HashMap<String, ModelFeatures>,
/* private fields */
}Expand description
The metadata about the models in a given region for a specific locale. Currently this is just the features of the 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_features: HashMap<String, ModelFeatures>Map of the model name -> features of that model
Implementations§
Source§impl ModelMetadata
impl ModelMetadata
pub fn new() -> Self
Sourcepub fn set_model_features<T, K, V>(self, v: T) -> Self
pub fn set_model_features<T, K, V>(self, v: T) -> Self
Sets the value of model_features.
§Example
ⓘ
use google_cloud_speech_v2::model::ModelFeatures;
let x = ModelMetadata::new().set_model_features([
("key0", ModelFeatures::default()/* use setters */),
("key1", ModelFeatures::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for ModelMetadata
impl Clone for ModelMetadata
Source§fn clone(&self) -> ModelMetadata
fn clone(&self) -> ModelMetadata
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 ModelMetadata
impl Debug for ModelMetadata
Source§impl Default for ModelMetadata
impl Default for ModelMetadata
Source§fn default() -> ModelMetadata
fn default() -> ModelMetadata
Returns the “default value” for a type. Read more
Source§impl Message for ModelMetadata
impl Message for ModelMetadata
Source§impl PartialEq for ModelMetadata
impl PartialEq for ModelMetadata
impl StructuralPartialEq for ModelMetadata
Auto Trait Implementations§
impl Freeze for ModelMetadata
impl RefUnwindSafe for ModelMetadata
impl Send for ModelMetadata
impl Sync for ModelMetadata
impl Unpin for ModelMetadata
impl UnwindSafe for ModelMetadata
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