#[non_exhaustive]pub struct BatchDeleteAssetsRequest {
pub parent: String,
pub names: Vec<String>,
pub allow_missing: bool,
/* private fields */
}Expand description
A request to delete a list of asset.
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.parent: StringRequired. Parent value for batch asset delete.
names: Vec<String>Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.
allow_missing: boolOptional. When this value is set to true the request is a no-op for
non-existing assets. See https://google.aip.dev/135#delete-if-existing for
additional details. Default value is false.
Implementations§
Source§impl BatchDeleteAssetsRequest
impl BatchDeleteAssetsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> 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.
§Example
ⓘ
let x = BatchDeleteAssetsRequest::new().set_allow_missing(true);Trait Implementations§
Source§impl Clone for BatchDeleteAssetsRequest
impl Clone for BatchDeleteAssetsRequest
Source§fn clone(&self) -> BatchDeleteAssetsRequest
fn clone(&self) -> BatchDeleteAssetsRequest
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 BatchDeleteAssetsRequest
impl Debug for BatchDeleteAssetsRequest
Source§impl Default for BatchDeleteAssetsRequest
impl Default for BatchDeleteAssetsRequest
Source§fn default() -> BatchDeleteAssetsRequest
fn default() -> BatchDeleteAssetsRequest
Returns the “default value” for a type. Read more
Source§impl Message for BatchDeleteAssetsRequest
impl Message for BatchDeleteAssetsRequest
Source§impl PartialEq for BatchDeleteAssetsRequest
impl PartialEq for BatchDeleteAssetsRequest
impl StructuralPartialEq for BatchDeleteAssetsRequest
Auto Trait Implementations§
impl Freeze for BatchDeleteAssetsRequest
impl RefUnwindSafe for BatchDeleteAssetsRequest
impl Send for BatchDeleteAssetsRequest
impl Sync for BatchDeleteAssetsRequest
impl Unpin for BatchDeleteAssetsRequest
impl UnsafeUnpin for BatchDeleteAssetsRequest
impl UnwindSafe for BatchDeleteAssetsRequest
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