#[non_exhaustive]pub struct ResourcePathNode {
pub node_type: ResourcePathNodeType,
pub id: String,
pub display_name: String,
/* private fields */
}Expand description
A node within the resource path. Each node represents a resource within the resource hierarchy.
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.node_type: ResourcePathNodeTypeThe type of resource this node represents.
id: StringThe ID of the resource this node represents.
display_name: StringThe display name of the resource this node represents.
Implementations§
Source§impl ResourcePathNode
impl ResourcePathNode
pub fn new() -> Self
Sourcepub fn set_node_type<T: Into<ResourcePathNodeType>>(self, v: T) -> Self
pub fn set_node_type<T: Into<ResourcePathNodeType>>(self, v: T) -> Self
Sets the value of node_type.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::resource_path::ResourcePathNodeType;
let x0 = ResourcePathNode::new().set_node_type(ResourcePathNodeType::GcpOrganization);
let x1 = ResourcePathNode::new().set_node_type(ResourcePathNodeType::GcpFolder);
let x2 = ResourcePathNode::new().set_node_type(ResourcePathNodeType::GcpProject);Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
ⓘ
let x = ResourcePathNode::new().set_display_name("example");Trait Implementations§
Source§impl Clone for ResourcePathNode
impl Clone for ResourcePathNode
Source§fn clone(&self) -> ResourcePathNode
fn clone(&self) -> ResourcePathNode
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 ResourcePathNode
impl Debug for ResourcePathNode
Source§impl Default for ResourcePathNode
impl Default for ResourcePathNode
Source§fn default() -> ResourcePathNode
fn default() -> ResourcePathNode
Returns the “default value” for a type. Read more
Source§impl Message for ResourcePathNode
impl Message for ResourcePathNode
Source§impl PartialEq for ResourcePathNode
impl PartialEq for ResourcePathNode
impl StructuralPartialEq for ResourcePathNode
Auto Trait Implementations§
impl Freeze for ResourcePathNode
impl RefUnwindSafe for ResourcePathNode
impl Send for ResourcePathNode
impl Sync for ResourcePathNode
impl Unpin for ResourcePathNode
impl UnwindSafe for ResourcePathNode
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