#[non_exhaustive]pub struct BatchCreateTargetSitesRequest {
pub parent: String,
pub requests: Vec<CreateTargetSiteRequest>,
/* private fields */
}Available on crate feature
site-search-engine-service only.Expand description
Request message for SiteSearchEngineService.BatchCreateTargetSites 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.parent: StringRequired. The parent resource shared by all TargetSites being created.
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.
The parent field in the CreateBookRequest messages must either be empty or
match this field.
requests: Vec<CreateTargetSiteRequest>Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.
Implementations§
Source§impl BatchCreateTargetSitesRequest
impl BatchCreateTargetSitesRequest
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 BatchCreateTargetSitesRequest
impl Clone for BatchCreateTargetSitesRequest
Source§fn clone(&self) -> BatchCreateTargetSitesRequest
fn clone(&self) -> BatchCreateTargetSitesRequest
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 BatchCreateTargetSitesRequest
impl Default for BatchCreateTargetSitesRequest
Source§fn default() -> BatchCreateTargetSitesRequest
fn default() -> BatchCreateTargetSitesRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for BatchCreateTargetSitesRequest
impl PartialEq for BatchCreateTargetSitesRequest
Source§fn eq(&self, other: &BatchCreateTargetSitesRequest) -> bool
fn eq(&self, other: &BatchCreateTargetSitesRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchCreateTargetSitesRequest
Auto Trait Implementations§
impl Freeze for BatchCreateTargetSitesRequest
impl RefUnwindSafe for BatchCreateTargetSitesRequest
impl Send for BatchCreateTargetSitesRequest
impl Sync for BatchCreateTargetSitesRequest
impl Unpin for BatchCreateTargetSitesRequest
impl UnwindSafe for BatchCreateTargetSitesRequest
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