#[non_exhaustive]pub struct CreateTargetSiteRequest {
pub parent: String,
pub target_site: Option<TargetSite>,
/* private fields */
}Available on crate feature
site-search-engine-service only.Expand description
Request message for SiteSearchEngineService.CreateTargetSite 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. Parent resource name of
TargetSite, such as
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.
target_site: Option<TargetSite>Required. The TargetSite to create.
Implementations§
Source§impl CreateTargetSiteRequest
impl CreateTargetSiteRequest
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_target_site<T>(self, v: T) -> Selfwhere
T: Into<TargetSite>,
pub fn set_target_site<T>(self, v: T) -> Selfwhere
T: Into<TargetSite>,
Sets the value of target_site.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::TargetSite;
let x = CreateTargetSiteRequest::new().set_target_site(TargetSite::default()/* use setters */);Sourcepub fn set_or_clear_target_site<T>(self, v: Option<T>) -> Selfwhere
T: Into<TargetSite>,
pub fn set_or_clear_target_site<T>(self, v: Option<T>) -> Selfwhere
T: Into<TargetSite>,
Sets or clears the value of target_site.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::TargetSite;
let x = CreateTargetSiteRequest::new().set_or_clear_target_site(Some(TargetSite::default()/* use setters */));
let x = CreateTargetSiteRequest::new().set_or_clear_target_site(None::<TargetSite>);Trait Implementations§
Source§impl Clone for CreateTargetSiteRequest
impl Clone for CreateTargetSiteRequest
Source§fn clone(&self) -> CreateTargetSiteRequest
fn clone(&self) -> CreateTargetSiteRequest
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 CreateTargetSiteRequest
impl Debug for CreateTargetSiteRequest
Source§impl Default for CreateTargetSiteRequest
impl Default for CreateTargetSiteRequest
Source§fn default() -> CreateTargetSiteRequest
fn default() -> CreateTargetSiteRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateTargetSiteRequest
impl Message for CreateTargetSiteRequest
Source§impl PartialEq for CreateTargetSiteRequest
impl PartialEq for CreateTargetSiteRequest
impl StructuralPartialEq for CreateTargetSiteRequest
Auto Trait Implementations§
impl Freeze for CreateTargetSiteRequest
impl RefUnwindSafe for CreateTargetSiteRequest
impl Send for CreateTargetSiteRequest
impl Sync for CreateTargetSiteRequest
impl Unpin for CreateTargetSiteRequest
impl UnwindSafe for CreateTargetSiteRequest
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