#[non_exhaustive]pub struct BatchCreateResourceValueConfigsRequest {
pub parent: String,
pub requests: Vec<CreateResourceValueConfigRequest>,
/* private fields */
}Expand description
Request message to create multiple resource value configs
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. Resource name of the new ResourceValueConfig’s parent. The parent field in the CreateResourceValueConfigRequest messages must either be empty or match this field.
requests: Vec<CreateResourceValueConfigRequest>Required. The resource value configs to be created.
Implementations§
Source§impl BatchCreateResourceValueConfigsRequest
impl BatchCreateResourceValueConfigsRequest
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_requests<T, V>(self, v: T) -> Self
pub fn set_requests<T, V>(self, v: T) -> Self
Sets the value of requests.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::CreateResourceValueConfigRequest;
let x = BatchCreateResourceValueConfigsRequest::new()
.set_requests([
CreateResourceValueConfigRequest::default()/* use setters */,
CreateResourceValueConfigRequest::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for BatchCreateResourceValueConfigsRequest
impl Clone for BatchCreateResourceValueConfigsRequest
Source§fn clone(&self) -> BatchCreateResourceValueConfigsRequest
fn clone(&self) -> BatchCreateResourceValueConfigsRequest
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 Default for BatchCreateResourceValueConfigsRequest
impl Default for BatchCreateResourceValueConfigsRequest
Source§fn default() -> BatchCreateResourceValueConfigsRequest
fn default() -> BatchCreateResourceValueConfigsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for BatchCreateResourceValueConfigsRequest
impl PartialEq for BatchCreateResourceValueConfigsRequest
Source§fn eq(&self, other: &BatchCreateResourceValueConfigsRequest) -> bool
fn eq(&self, other: &BatchCreateResourceValueConfigsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchCreateResourceValueConfigsRequest
Auto Trait Implementations§
impl Freeze for BatchCreateResourceValueConfigsRequest
impl RefUnwindSafe for BatchCreateResourceValueConfigsRequest
impl Send for BatchCreateResourceValueConfigsRequest
impl Sync for BatchCreateResourceValueConfigsRequest
impl Unpin for BatchCreateResourceValueConfigsRequest
impl UnwindSafe for BatchCreateResourceValueConfigsRequest
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