#[non_exhaustive]pub struct DeleteRecognizerRequest {
pub name: String,
pub validate_only: bool,
pub allow_missing: bool,
pub etag: String,
/* private fields */
}Expand description
Request message for the DeleteRecognizer 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.name: StringRequired. The name of the Recognizer to delete.
Format: projects/{project}/locations/{location}/recognizers/{recognizer}
validate_only: boolIf set, validate the request and preview the deleted Recognizer, but do not actually delete it.
allow_missing: boolIf set to true, and the Recognizer is not found, the request will succeed and be a no-op (no Operation is recorded in this case).
etag: StringThis checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding.
Implementations§
Source§impl DeleteRecognizerRequest
impl DeleteRecognizerRequest
pub fn new() -> Self
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 = DeleteRecognizerRequest::new().set_validate_only(true);Sourcepub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_missing.
§Example
ⓘ
let x = DeleteRecognizerRequest::new().set_allow_missing(true);Trait Implementations§
Source§impl Clone for DeleteRecognizerRequest
impl Clone for DeleteRecognizerRequest
Source§fn clone(&self) -> DeleteRecognizerRequest
fn clone(&self) -> DeleteRecognizerRequest
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 DeleteRecognizerRequest
impl Debug for DeleteRecognizerRequest
Source§impl Default for DeleteRecognizerRequest
impl Default for DeleteRecognizerRequest
Source§fn default() -> DeleteRecognizerRequest
fn default() -> DeleteRecognizerRequest
Returns the “default value” for a type. Read more
Source§impl Message for DeleteRecognizerRequest
impl Message for DeleteRecognizerRequest
Source§impl PartialEq for DeleteRecognizerRequest
impl PartialEq for DeleteRecognizerRequest
impl StructuralPartialEq for DeleteRecognizerRequest
Auto Trait Implementations§
impl Freeze for DeleteRecognizerRequest
impl RefUnwindSafe for DeleteRecognizerRequest
impl Send for DeleteRecognizerRequest
impl Sync for DeleteRecognizerRequest
impl Unpin for DeleteRecognizerRequest
impl UnwindSafe for DeleteRecognizerRequest
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