#[non_exhaustive]pub struct UpdateRecognizerRequest {
pub recognizer: Option<Recognizer>,
pub update_mask: Option<FieldMask>,
pub validate_only: bool,
/* private fields */
}Expand description
Request message for the UpdateRecognizer method.
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.recognizer: Option<Recognizer>Required. The Recognizer to update.
The Recognizer’s name field is used to identify the Recognizer to update.
Format: projects/{project}/locations/{location}/recognizers/{recognizer}.
update_mask: Option<FieldMask>The list of fields to update. If empty, all non-default valued fields are
considered for update. Use * to update the entire Recognizer resource.
validate_only: boolIf set, validate the request and preview the updated Recognizer, but do not actually update it.
Implementations§
Source§impl UpdateRecognizerRequest
impl UpdateRecognizerRequest
pub fn new() -> Self
Sourcepub fn set_recognizer<T>(self, v: T) -> Selfwhere
T: Into<Recognizer>,
pub fn set_recognizer<T>(self, v: T) -> Selfwhere
T: Into<Recognizer>,
Sets the value of recognizer.
§Example
ⓘ
use google_cloud_speech_v2::model::Recognizer;
let x = UpdateRecognizerRequest::new().set_recognizer(Recognizer::default()/* use setters */);Sourcepub fn set_or_clear_recognizer<T>(self, v: Option<T>) -> Selfwhere
T: Into<Recognizer>,
pub fn set_or_clear_recognizer<T>(self, v: Option<T>) -> Selfwhere
T: Into<Recognizer>,
Sets or clears the value of recognizer.
§Example
ⓘ
use google_cloud_speech_v2::model::Recognizer;
let x = UpdateRecognizerRequest::new().set_or_clear_recognizer(Some(Recognizer::default()/* use setters */));
let x = UpdateRecognizerRequest::new().set_or_clear_recognizer(None::<Recognizer>);Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateRecognizerRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateRecognizerRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateRecognizerRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
§Example
ⓘ
let x = UpdateRecognizerRequest::new().set_validate_only(true);Trait Implementations§
Source§impl Clone for UpdateRecognizerRequest
impl Clone for UpdateRecognizerRequest
Source§fn clone(&self) -> UpdateRecognizerRequest
fn clone(&self) -> UpdateRecognizerRequest
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 UpdateRecognizerRequest
impl Debug for UpdateRecognizerRequest
Source§impl Default for UpdateRecognizerRequest
impl Default for UpdateRecognizerRequest
Source§fn default() -> UpdateRecognizerRequest
fn default() -> UpdateRecognizerRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateRecognizerRequest
impl Message for UpdateRecognizerRequest
Source§impl PartialEq for UpdateRecognizerRequest
impl PartialEq for UpdateRecognizerRequest
impl StructuralPartialEq for UpdateRecognizerRequest
Auto Trait Implementations§
impl Freeze for UpdateRecognizerRequest
impl RefUnwindSafe for UpdateRecognizerRequest
impl Send for UpdateRecognizerRequest
impl Sync for UpdateRecognizerRequest
impl Unpin for UpdateRecognizerRequest
impl UnwindSafe for UpdateRecognizerRequest
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