#[non_exhaustive]pub struct GcpMetadata {
pub project: String,
pub project_display_name: String,
pub parent: String,
pub parent_display_name: String,
pub folders: Vec<Folder>,
pub organization: String,
/* private fields */
}Expand description
Google Cloud metadata associated with the resource. Only applicable if the finding’s cloud provider is Google Cloud.
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.project: StringThe full resource name of project that the resource belongs to.
project_display_name: StringThe project ID that the resource belongs to.
parent: StringThe full resource name of resource’s parent.
parent_display_name: StringThe human readable name of resource’s parent.
folders: Vec<Folder>Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
organization: StringThe name of the organization that the resource belongs to.
Implementations§
Source§impl GcpMetadata
impl GcpMetadata
pub fn new() -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_project_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_project_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of project_display_name.
§Example
ⓘ
let x = GcpMetadata::new().set_project_display_name("example");Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_parent_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_parent_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of parent_display_name.
§Example
ⓘ
let x = GcpMetadata::new().set_parent_display_name("example");Sourcepub fn set_folders<T, V>(self, v: T) -> Self
pub fn set_folders<T, V>(self, v: T) -> Self
Sourcepub fn set_organization<T: Into<String>>(self, v: T) -> Self
pub fn set_organization<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for GcpMetadata
impl Clone for GcpMetadata
Source§fn clone(&self) -> GcpMetadata
fn clone(&self) -> GcpMetadata
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 GcpMetadata
impl Debug for GcpMetadata
Source§impl Default for GcpMetadata
impl Default for GcpMetadata
Source§fn default() -> GcpMetadata
fn default() -> GcpMetadata
Returns the “default value” for a type. Read more
Source§impl Message for GcpMetadata
impl Message for GcpMetadata
Source§impl PartialEq for GcpMetadata
impl PartialEq for GcpMetadata
impl StructuralPartialEq for GcpMetadata
Auto Trait Implementations§
impl Freeze for GcpMetadata
impl RefUnwindSafe for GcpMetadata
impl Send for GcpMetadata
impl Sync for GcpMetadata
impl Unpin for GcpMetadata
impl UnwindSafe for GcpMetadata
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