#[non_exhaustive]pub struct UpdateOrganizationIntelligenceConfigRequest {
pub intelligence_config: Option<IntelligenceConfig>,
pub update_mask: Option<FieldMask>,
pub request_id: String,
/* private fields */
}Expand description
Request message to update the IntelligenceConfig resource associated with
your organization.
IAM Permissions:
Requires storage.intelligenceConfigs.update
IAM permission on
the organization.
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.intelligence_config: Option<IntelligenceConfig>Required. The IntelligenceConfig resource to be updated.
update_mask: Option<FieldMask>Required. The update_mask that specifies the fields within the
IntelligenceConfig resource that should be modified by this update. Only
the listed fields are updated.
request_id: StringOptional. The ID that uniquely identifies the request, preventing duplicate processing.
Implementations§
Source§impl UpdateOrganizationIntelligenceConfigRequest
impl UpdateOrganizationIntelligenceConfigRequest
pub fn new() -> Self
Sourcepub fn set_intelligence_config<T>(self, v: T) -> Selfwhere
T: Into<IntelligenceConfig>,
pub fn set_intelligence_config<T>(self, v: T) -> Selfwhere
T: Into<IntelligenceConfig>,
Sets the value of intelligence_config.
§Example
ⓘ
use google_cloud_storage::model::IntelligenceConfig;
let x = UpdateOrganizationIntelligenceConfigRequest::new().set_intelligence_config(IntelligenceConfig::default()/* use setters */);Sourcepub fn set_or_clear_intelligence_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<IntelligenceConfig>,
pub fn set_or_clear_intelligence_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<IntelligenceConfig>,
Sets or clears the value of intelligence_config.
§Example
ⓘ
use google_cloud_storage::model::IntelligenceConfig;
let x = UpdateOrganizationIntelligenceConfigRequest::new().set_or_clear_intelligence_config(Some(IntelligenceConfig::default()/* use setters */));
let x = UpdateOrganizationIntelligenceConfigRequest::new().set_or_clear_intelligence_config(None::<IntelligenceConfig>);Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateOrganizationIntelligenceConfigRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateOrganizationIntelligenceConfigRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateOrganizationIntelligenceConfigRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
§Example
ⓘ
let x = UpdateOrganizationIntelligenceConfigRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for UpdateOrganizationIntelligenceConfigRequest
impl Clone for UpdateOrganizationIntelligenceConfigRequest
Source§fn clone(&self) -> UpdateOrganizationIntelligenceConfigRequest
fn clone(&self) -> UpdateOrganizationIntelligenceConfigRequest
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 UpdateOrganizationIntelligenceConfigRequest
impl Default for UpdateOrganizationIntelligenceConfigRequest
Source§fn default() -> UpdateOrganizationIntelligenceConfigRequest
fn default() -> UpdateOrganizationIntelligenceConfigRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateOrganizationIntelligenceConfigRequest
impl PartialEq for UpdateOrganizationIntelligenceConfigRequest
Source§fn eq(&self, other: &UpdateOrganizationIntelligenceConfigRequest) -> bool
fn eq(&self, other: &UpdateOrganizationIntelligenceConfigRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateOrganizationIntelligenceConfigRequest
Auto Trait Implementations§
impl Freeze for UpdateOrganizationIntelligenceConfigRequest
impl RefUnwindSafe for UpdateOrganizationIntelligenceConfigRequest
impl Send for UpdateOrganizationIntelligenceConfigRequest
impl Sync for UpdateOrganizationIntelligenceConfigRequest
impl Unpin for UpdateOrganizationIntelligenceConfigRequest
impl UnwindSafe for UpdateOrganizationIntelligenceConfigRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request