#[non_exhaustive]pub struct AwsMetadata {
pub organization: Option<AwsOrganization>,
pub organizational_units: Vec<AwsOrganizationalUnit>,
pub account: Option<AwsAccount>,
/* private fields */
}Expand description
AWS metadata associated with the resource, only applicable if the finding’s cloud provider is Amazon Web Services.
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.organization: Option<AwsOrganization>The AWS organization associated with the resource.
organizational_units: Vec<AwsOrganizationalUnit>A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.
account: Option<AwsAccount>The AWS account associated with the resource.
Implementations§
Source§impl AwsMetadata
impl AwsMetadata
pub fn new() -> Self
Sourcepub fn set_organization<T>(self, v: T) -> Selfwhere
T: Into<AwsOrganization>,
pub fn set_organization<T>(self, v: T) -> Selfwhere
T: Into<AwsOrganization>,
Sets the value of organization.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::aws_metadata::AwsOrganization;
let x = AwsMetadata::new().set_organization(AwsOrganization::default()/* use setters */);Sourcepub fn set_or_clear_organization<T>(self, v: Option<T>) -> Selfwhere
T: Into<AwsOrganization>,
pub fn set_or_clear_organization<T>(self, v: Option<T>) -> Selfwhere
T: Into<AwsOrganization>,
Sets or clears the value of organization.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::aws_metadata::AwsOrganization;
let x = AwsMetadata::new().set_or_clear_organization(Some(AwsOrganization::default()/* use setters */));
let x = AwsMetadata::new().set_or_clear_organization(None::<AwsOrganization>);Sourcepub fn set_organizational_units<T, V>(self, v: T) -> Self
pub fn set_organizational_units<T, V>(self, v: T) -> Self
Sets the value of organizational_units.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::aws_metadata::AwsOrganizationalUnit;
let x = AwsMetadata::new()
.set_organizational_units([
AwsOrganizationalUnit::default()/* use setters */,
AwsOrganizationalUnit::default()/* use (different) setters */,
]);Sourcepub fn set_account<T>(self, v: T) -> Selfwhere
T: Into<AwsAccount>,
pub fn set_account<T>(self, v: T) -> Selfwhere
T: Into<AwsAccount>,
Sourcepub fn set_or_clear_account<T>(self, v: Option<T>) -> Selfwhere
T: Into<AwsAccount>,
pub fn set_or_clear_account<T>(self, v: Option<T>) -> Selfwhere
T: Into<AwsAccount>,
Trait Implementations§
Source§impl Clone for AwsMetadata
impl Clone for AwsMetadata
Source§fn clone(&self) -> AwsMetadata
fn clone(&self) -> AwsMetadata
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 AwsMetadata
impl Debug for AwsMetadata
Source§impl Default for AwsMetadata
impl Default for AwsMetadata
Source§fn default() -> AwsMetadata
fn default() -> AwsMetadata
Returns the “default value” for a type. Read more
Source§impl Message for AwsMetadata
impl Message for AwsMetadata
Source§impl PartialEq for AwsMetadata
impl PartialEq for AwsMetadata
impl StructuralPartialEq for AwsMetadata
Auto Trait Implementations§
impl Freeze for AwsMetadata
impl RefUnwindSafe for AwsMetadata
impl Send for AwsMetadata
impl Sync for AwsMetadata
impl Unpin for AwsMetadata
impl UnwindSafe for AwsMetadata
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