#[non_exhaustive]pub struct BatchCreateDataObjectsRequest {
pub parent: String,
pub requests: Vec<CreateDataObjectRequest>,
/* private fields */
}Expand description
Request message for DataObjectService.BatchCreateDataObjects.
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. The resource name of the Collection to create the DataObjects in.
Format: projects/{project}/locations/{location}/collections/{collection}.
The parent field in the CreateDataObjectRequest messages must match this
field.
requests: Vec<CreateDataObjectRequest>Required. The request message specifying the resources to create. A maximum of 1000 DataObjects can be created in a batch.
Implementations§
Source§impl BatchCreateDataObjectsRequest
impl BatchCreateDataObjectsRequest
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
Trait Implementations§
Source§impl Clone for BatchCreateDataObjectsRequest
impl Clone for BatchCreateDataObjectsRequest
Source§fn clone(&self) -> BatchCreateDataObjectsRequest
fn clone(&self) -> BatchCreateDataObjectsRequest
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 BatchCreateDataObjectsRequest
impl Default for BatchCreateDataObjectsRequest
Source§fn default() -> BatchCreateDataObjectsRequest
fn default() -> BatchCreateDataObjectsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for BatchCreateDataObjectsRequest
impl PartialEq for BatchCreateDataObjectsRequest
Source§fn eq(&self, other: &BatchCreateDataObjectsRequest) -> bool
fn eq(&self, other: &BatchCreateDataObjectsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchCreateDataObjectsRequest
Auto Trait Implementations§
impl Freeze for BatchCreateDataObjectsRequest
impl RefUnwindSafe for BatchCreateDataObjectsRequest
impl Send for BatchCreateDataObjectsRequest
impl Sync for BatchCreateDataObjectsRequest
impl Unpin for BatchCreateDataObjectsRequest
impl UnsafeUnpin for BatchCreateDataObjectsRequest
impl UnwindSafe for BatchCreateDataObjectsRequest
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