#[non_exhaustive]pub struct IntelligenceConfig {
pub name: String,
pub edition_config: EditionConfig,
pub update_time: Option<Timestamp>,
pub filter: Option<Filter>,
pub effective_intelligence_config: Option<EffectiveIntelligenceConfig>,
pub trial_config: Option<TrialConfig>,
/* private fields */
}Expand description
The IntelligenceConfig resource associated with your organization, folder,
or project.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The name of the IntelligenceConfig resource associated with
your organization, folder, or project.
The name format varies based on the GCP resource hierarchy as follows:
- For project:
projects/{project_number}/locations/global/intelligenceConfig - For organization:
organizations/{org_id}/locations/global/intelligenceConfig - For folder:
folders/{folder_id}/locations/global/intelligenceConfig
edition_config: EditionConfigOptional. The edition configuration of the IntelligenceConfig resource.
update_time: Option<Timestamp>Output only. The time at which the IntelligenceConfig resource is last
updated.
filter: Option<Filter>Optional. Filter over location and bucket.
effective_intelligence_config: Option<EffectiveIntelligenceConfig>Output only. The IntelligenceConfig resource that is applicable for the
resource.
trial_config: Option<TrialConfig>The trial configuration of the IntelligenceConfig resource.
Implementations§
Source§impl IntelligenceConfig
impl IntelligenceConfig
pub fn new() -> Self
Sourcepub fn set_edition_config<T: Into<EditionConfig>>(self, v: T) -> Self
pub fn set_edition_config<T: Into<EditionConfig>>(self, v: T) -> Self
Sets the value of edition_config.
§Example
use google_cloud_storage::model::intelligence_config::EditionConfig;
let x0 = IntelligenceConfig::new().set_edition_config(EditionConfig::Inherit);
let x1 = IntelligenceConfig::new().set_edition_config(EditionConfig::Disabled);
let x2 = IntelligenceConfig::new().set_edition_config(EditionConfig::Standard);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = IntelligenceConfig::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = IntelligenceConfig::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = IntelligenceConfig::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_filter<T>(self, v: T) -> Self
pub fn set_filter<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_filter<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_filter<T>(self, v: Option<T>) -> Self
Sourcepub fn set_effective_intelligence_config<T>(self, v: T) -> Selfwhere
T: Into<EffectiveIntelligenceConfig>,
pub fn set_effective_intelligence_config<T>(self, v: T) -> Selfwhere
T: Into<EffectiveIntelligenceConfig>,
Sets the value of effective_intelligence_config.
§Example
use google_cloud_storage::model::intelligence_config::EffectiveIntelligenceConfig;
let x = IntelligenceConfig::new().set_effective_intelligence_config(EffectiveIntelligenceConfig::default()/* use setters */);Sourcepub fn set_or_clear_effective_intelligence_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<EffectiveIntelligenceConfig>,
pub fn set_or_clear_effective_intelligence_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<EffectiveIntelligenceConfig>,
Sets or clears the value of effective_intelligence_config.
§Example
use google_cloud_storage::model::intelligence_config::EffectiveIntelligenceConfig;
let x = IntelligenceConfig::new().set_or_clear_effective_intelligence_config(Some(EffectiveIntelligenceConfig::default()/* use setters */));
let x = IntelligenceConfig::new().set_or_clear_effective_intelligence_config(None::<EffectiveIntelligenceConfig>);Sourcepub fn set_trial_config<T>(self, v: T) -> Selfwhere
T: Into<TrialConfig>,
pub fn set_trial_config<T>(self, v: T) -> Selfwhere
T: Into<TrialConfig>,
Sets the value of trial_config.
§Example
use google_cloud_storage::model::intelligence_config::TrialConfig;
let x = IntelligenceConfig::new().set_trial_config(TrialConfig::default()/* use setters */);Sourcepub fn set_or_clear_trial_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<TrialConfig>,
pub fn set_or_clear_trial_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<TrialConfig>,
Sets or clears the value of trial_config.
§Example
use google_cloud_storage::model::intelligence_config::TrialConfig;
let x = IntelligenceConfig::new().set_or_clear_trial_config(Some(TrialConfig::default()/* use setters */));
let x = IntelligenceConfig::new().set_or_clear_trial_config(None::<TrialConfig>);Trait Implementations§
Source§impl Clone for IntelligenceConfig
impl Clone for IntelligenceConfig
Source§fn clone(&self) -> IntelligenceConfig
fn clone(&self) -> IntelligenceConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IntelligenceConfig
impl Debug for IntelligenceConfig
Source§impl Default for IntelligenceConfig
impl Default for IntelligenceConfig
Source§fn default() -> IntelligenceConfig
fn default() -> IntelligenceConfig
Source§impl Message for IntelligenceConfig
impl Message for IntelligenceConfig
Source§impl PartialEq for IntelligenceConfig
impl PartialEq for IntelligenceConfig
impl StructuralPartialEq for IntelligenceConfig
Auto Trait Implementations§
impl Freeze for IntelligenceConfig
impl RefUnwindSafe for IntelligenceConfig
impl Send for IntelligenceConfig
impl Sync for IntelligenceConfig
impl Unpin for IntelligenceConfig
impl UnwindSafe for IntelligenceConfig
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
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>
T in a tonic::Request