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