#[non_exhaustive]pub struct DeletePhraseSetRequest {
pub name: String,
pub validate_only: bool,
pub allow_missing: bool,
pub etag: String,
/* private fields */
}Expand description
Request message for the DeletePhraseSet 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 PhraseSet to delete.
Format: projects/{project}/locations/{location}/phraseSets/{phrase_set}
validate_only: boolIf set, validate the request and preview the deleted PhraseSet, but do not actually delete it.
allow_missing: boolIf set to true, and the PhraseSet 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 DeletePhraseSetRequest
impl DeletePhraseSetRequest
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 = DeletePhraseSetRequest::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 = DeletePhraseSetRequest::new().set_allow_missing(true);Trait Implementations§
Source§impl Clone for DeletePhraseSetRequest
impl Clone for DeletePhraseSetRequest
Source§fn clone(&self) -> DeletePhraseSetRequest
fn clone(&self) -> DeletePhraseSetRequest
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 DeletePhraseSetRequest
impl Debug for DeletePhraseSetRequest
Source§impl Default for DeletePhraseSetRequest
impl Default for DeletePhraseSetRequest
Source§fn default() -> DeletePhraseSetRequest
fn default() -> DeletePhraseSetRequest
Returns the “default value” for a type. Read more
Source§impl Message for DeletePhraseSetRequest
impl Message for DeletePhraseSetRequest
Source§impl PartialEq for DeletePhraseSetRequest
impl PartialEq for DeletePhraseSetRequest
impl StructuralPartialEq for DeletePhraseSetRequest
Auto Trait Implementations§
impl Freeze for DeletePhraseSetRequest
impl RefUnwindSafe for DeletePhraseSetRequest
impl Send for DeletePhraseSetRequest
impl Sync for DeletePhraseSetRequest
impl Unpin for DeletePhraseSetRequest
impl UnwindSafe for DeletePhraseSetRequest
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