#[non_exhaustive]pub struct UpdateTargetSiteRequest {
pub target_site: Option<TargetSite>,
/* private fields */
}Available on crate feature
site-search-engine-service only.Expand description
Request message for SiteSearchEngineService.UpdateTargetSite 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.target_site: Option<TargetSite>Required. The target site to update. If the caller does not have permission to update the TargetSite, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the TargetSite to update does not exist, a NOT_FOUND error is returned.
Implementations§
Source§impl UpdateTargetSiteRequest
impl UpdateTargetSiteRequest
pub fn new() -> 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 = UpdateTargetSiteRequest::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 = UpdateTargetSiteRequest::new().set_or_clear_target_site(Some(TargetSite::default()/* use setters */));
let x = UpdateTargetSiteRequest::new().set_or_clear_target_site(None::<TargetSite>);Trait Implementations§
Source§impl Clone for UpdateTargetSiteRequest
impl Clone for UpdateTargetSiteRequest
Source§fn clone(&self) -> UpdateTargetSiteRequest
fn clone(&self) -> UpdateTargetSiteRequest
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 UpdateTargetSiteRequest
impl Debug for UpdateTargetSiteRequest
Source§impl Default for UpdateTargetSiteRequest
impl Default for UpdateTargetSiteRequest
Source§fn default() -> UpdateTargetSiteRequest
fn default() -> UpdateTargetSiteRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateTargetSiteRequest
impl Message for UpdateTargetSiteRequest
Source§impl PartialEq for UpdateTargetSiteRequest
impl PartialEq for UpdateTargetSiteRequest
impl StructuralPartialEq for UpdateTargetSiteRequest
Auto Trait Implementations§
impl Freeze for UpdateTargetSiteRequest
impl RefUnwindSafe for UpdateTargetSiteRequest
impl Send for UpdateTargetSiteRequest
impl Sync for UpdateTargetSiteRequest
impl Unpin for UpdateTargetSiteRequest
impl UnwindSafe for UpdateTargetSiteRequest
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