#[non_exhaustive]pub struct TargetResourceConfig {
pub resource_config: Option<ResourceConfig>,
/* private fields */
}Expand description
The name of the target resource or the configuration that’s required to create a new target resource.
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.resource_config: Option<ResourceConfig>The resource configuration for the target resource.
Implementations§
Source§impl TargetResourceConfig
impl TargetResourceConfig
Sourcepub fn set_resource_config<T: Into<Option<ResourceConfig>>>(self, v: T) -> Self
pub fn set_resource_config<T: Into<Option<ResourceConfig>>>(self, v: T) -> Self
Sets the value of resource_config.
Note that all the setters affecting resource_config are mutually
exclusive.
§Example
use google_cloud_cloudsecuritycompliance_v1::model::target_resource_config::ResourceConfig;
let x = TargetResourceConfig::new().set_resource_config(Some(ResourceConfig::ExistingTargetResource("example".to_string())));Sourcepub fn existing_target_resource(&self) -> Option<&String>
pub fn existing_target_resource(&self) -> Option<&String>
The value of resource_config
if it holds a ExistingTargetResource, None if the field is not set or
holds a different branch.
Sourcepub fn set_existing_target_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_existing_target_resource<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_config
to hold a ExistingTargetResource.
Note that all the setters affecting resource_config are
mutually exclusive.
§Example
let x = TargetResourceConfig::new().set_existing_target_resource("example");
assert!(x.existing_target_resource().is_some());
assert!(x.target_resource_creation_config().is_none());Sourcepub fn target_resource_creation_config(
&self,
) -> Option<&Box<TargetResourceCreationConfig>>
pub fn target_resource_creation_config( &self, ) -> Option<&Box<TargetResourceCreationConfig>>
The value of resource_config
if it holds a TargetResourceCreationConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_target_resource_creation_config<T: Into<Box<TargetResourceCreationConfig>>>(
self,
v: T,
) -> Self
pub fn set_target_resource_creation_config<T: Into<Box<TargetResourceCreationConfig>>>( self, v: T, ) -> Self
Sets the value of resource_config
to hold a TargetResourceCreationConfig.
Note that all the setters affecting resource_config are
mutually exclusive.
§Example
use google_cloud_cloudsecuritycompliance_v1::model::TargetResourceCreationConfig;
let x = TargetResourceConfig::new().set_target_resource_creation_config(TargetResourceCreationConfig::default()/* use setters */);
assert!(x.target_resource_creation_config().is_some());
assert!(x.existing_target_resource().is_none());Trait Implementations§
Source§impl Clone for TargetResourceConfig
impl Clone for TargetResourceConfig
Source§fn clone(&self) -> TargetResourceConfig
fn clone(&self) -> TargetResourceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TargetResourceConfig
impl Debug for TargetResourceConfig
Source§impl Default for TargetResourceConfig
impl Default for TargetResourceConfig
Source§fn default() -> TargetResourceConfig
fn default() -> TargetResourceConfig
Source§impl Message for TargetResourceConfig
impl Message for TargetResourceConfig
Source§impl PartialEq for TargetResourceConfig
impl PartialEq for TargetResourceConfig
impl StructuralPartialEq for TargetResourceConfig
Auto Trait Implementations§
impl Freeze for TargetResourceConfig
impl RefUnwindSafe for TargetResourceConfig
impl Send for TargetResourceConfig
impl Sync for TargetResourceConfig
impl Unpin for TargetResourceConfig
impl UnsafeUnpin for TargetResourceConfig
impl UnwindSafe for TargetResourceConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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