#[non_exhaustive]pub struct LocationsMetadata {
pub languages: Option<LanguageMetadata>,
pub access_metadata: Option<AccessMetadata>,
/* private fields */
}Expand description
Main metadata for the Locations API for STT V2. Currently this is just the metadata about locales, models, and features
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.languages: Option<LanguageMetadata>Information about available locales, models, and features represented in the hierarchical structure of locales -> models -> features
access_metadata: Option<AccessMetadata>Information about access metadata for the region and given project.
Implementations§
Source§impl LocationsMetadata
impl LocationsMetadata
pub fn new() -> Self
Sourcepub fn set_languages<T>(self, v: T) -> Selfwhere
T: Into<LanguageMetadata>,
pub fn set_languages<T>(self, v: T) -> Selfwhere
T: Into<LanguageMetadata>,
Sourcepub fn set_or_clear_languages<T>(self, v: Option<T>) -> Selfwhere
T: Into<LanguageMetadata>,
pub fn set_or_clear_languages<T>(self, v: Option<T>) -> Selfwhere
T: Into<LanguageMetadata>,
Sourcepub fn set_access_metadata<T>(self, v: T) -> Selfwhere
T: Into<AccessMetadata>,
pub fn set_access_metadata<T>(self, v: T) -> Selfwhere
T: Into<AccessMetadata>,
Sets the value of access_metadata.
§Example
ⓘ
use google_cloud_speech_v2::model::AccessMetadata;
let x = LocationsMetadata::new().set_access_metadata(AccessMetadata::default()/* use setters */);Sourcepub fn set_or_clear_access_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<AccessMetadata>,
pub fn set_or_clear_access_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<AccessMetadata>,
Sets or clears the value of access_metadata.
§Example
ⓘ
use google_cloud_speech_v2::model::AccessMetadata;
let x = LocationsMetadata::new().set_or_clear_access_metadata(Some(AccessMetadata::default()/* use setters */));
let x = LocationsMetadata::new().set_or_clear_access_metadata(None::<AccessMetadata>);Trait Implementations§
Source§impl Clone for LocationsMetadata
impl Clone for LocationsMetadata
Source§fn clone(&self) -> LocationsMetadata
fn clone(&self) -> LocationsMetadata
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 LocationsMetadata
impl Debug for LocationsMetadata
Source§impl Default for LocationsMetadata
impl Default for LocationsMetadata
Source§fn default() -> LocationsMetadata
fn default() -> LocationsMetadata
Returns the “default value” for a type. Read more
Source§impl Message for LocationsMetadata
impl Message for LocationsMetadata
Source§impl PartialEq for LocationsMetadata
impl PartialEq for LocationsMetadata
impl StructuralPartialEq for LocationsMetadata
Auto Trait Implementations§
impl Freeze for LocationsMetadata
impl RefUnwindSafe for LocationsMetadata
impl Send for LocationsMetadata
impl Sync for LocationsMetadata
impl Unpin for LocationsMetadata
impl UnwindSafe for LocationsMetadata
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