#[non_exhaustive]pub struct Simulation {
pub name: String,
pub create_time: Option<Timestamp>,
pub resource_value_configs_metadata: Vec<ResourceValueConfigMetadata>,
pub cloud_provider: CloudProvider,
/* private fields */
}Expand description
Attack path simulation
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.name: StringFull resource name of the Simulation:
organizations/123/simulations/456
create_time: Option<Timestamp>Output only. Time simulation was created
resource_value_configs_metadata: Vec<ResourceValueConfigMetadata>Resource value configurations’ metadata used in this simulation. Maximum of 100.
cloud_provider: CloudProviderIndicates which cloud provider was used in this simulation.
Implementations§
Source§impl Simulation
impl Simulation
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Simulation::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Simulation::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Simulation::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_resource_value_configs_metadata<T, V>(self, v: T) -> Self
pub fn set_resource_value_configs_metadata<T, V>(self, v: T) -> Self
Sets the value of resource_value_configs_metadata.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::ResourceValueConfigMetadata;
let x = Simulation::new()
.set_resource_value_configs_metadata([
ResourceValueConfigMetadata::default()/* use setters */,
ResourceValueConfigMetadata::default()/* use (different) setters */,
]);Sourcepub fn set_cloud_provider<T: Into<CloudProvider>>(self, v: T) -> Self
pub fn set_cloud_provider<T: Into<CloudProvider>>(self, v: T) -> Self
Sets the value of cloud_provider.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::CloudProvider;
let x0 = Simulation::new().set_cloud_provider(CloudProvider::GoogleCloudPlatform);
let x1 = Simulation::new().set_cloud_provider(CloudProvider::AmazonWebServices);
let x2 = Simulation::new().set_cloud_provider(CloudProvider::MicrosoftAzure);Trait Implementations§
Source§impl Clone for Simulation
impl Clone for Simulation
Source§fn clone(&self) -> Simulation
fn clone(&self) -> Simulation
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 Simulation
impl Debug for Simulation
Source§impl Default for Simulation
impl Default for Simulation
Source§fn default() -> Simulation
fn default() -> Simulation
Returns the “default value” for a type. Read more
Source§impl PartialEq for Simulation
impl PartialEq for Simulation
impl StructuralPartialEq for Simulation
Auto Trait Implementations§
impl Freeze for Simulation
impl RefUnwindSafe for Simulation
impl Send for Simulation
impl Sync for Simulation
impl Unpin for Simulation
impl UnwindSafe for Simulation
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