#[non_exhaustive]pub struct DeleteGoogleApiSourceRequest {
pub name: String,
pub etag: String,
pub allow_missing: bool,
pub validate_only: bool,
/* private fields */
}Expand description
The request message for the DeleteGoogleApiSource 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 GoogleApiSource to be deleted.
etag: StringOptional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource.
allow_missing: boolOptional. If set to true, and the MessageBus is not found, the request will succeed but no action will be taken on the server.
validate_only: boolOptional. If set, validate the request and preview the review, but do not post it.
Implementations§
Source§impl DeleteGoogleApiSourceRequest
impl DeleteGoogleApiSourceRequest
pub fn new() -> Self
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.
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.
Trait Implementations§
Source§impl Clone for DeleteGoogleApiSourceRequest
impl Clone for DeleteGoogleApiSourceRequest
Source§fn clone(&self) -> DeleteGoogleApiSourceRequest
fn clone(&self) -> DeleteGoogleApiSourceRequest
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 DeleteGoogleApiSourceRequest
impl Debug for DeleteGoogleApiSourceRequest
Source§impl Default for DeleteGoogleApiSourceRequest
impl Default for DeleteGoogleApiSourceRequest
Source§fn default() -> DeleteGoogleApiSourceRequest
fn default() -> DeleteGoogleApiSourceRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeleteGoogleApiSourceRequest
impl PartialEq for DeleteGoogleApiSourceRequest
Source§fn eq(&self, other: &DeleteGoogleApiSourceRequest) -> bool
fn eq(&self, other: &DeleteGoogleApiSourceRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeleteGoogleApiSourceRequest
Auto Trait Implementations§
impl Freeze for DeleteGoogleApiSourceRequest
impl RefUnwindSafe for DeleteGoogleApiSourceRequest
impl Send for DeleteGoogleApiSourceRequest
impl Sync for DeleteGoogleApiSourceRequest
impl Unpin for DeleteGoogleApiSourceRequest
impl UnwindSafe for DeleteGoogleApiSourceRequest
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