#[non_exhaustive]pub struct AttackPathNode {
pub resource: String,
pub resource_type: String,
pub display_name: String,
pub associated_findings: Vec<PathNodeAssociatedFinding>,
pub uuid: String,
pub attack_steps: Vec<AttackStepNode>,
/* private fields */
}Expand description
Represents one point that an attacker passes through in this attack path.
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.resource: StringThe name of the resource at this point in the attack path. The format of the name follows the Cloud Asset Inventory resource name format
resource_type: String§display_name: StringHuman-readable name of this resource.
associated_findings: Vec<PathNodeAssociatedFinding>The findings associated with this node in the attack path.
uuid: StringUnique id of the attack path node.
attack_steps: Vec<AttackStepNode>A list of attack step nodes that exist in this attack path node.
Implementations§
Source§impl AttackPathNode
impl AttackPathNode
pub fn new() -> Self
Sourcepub fn set_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_resource<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_resource_type<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_type<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_type.
§Example
ⓘ
let x = AttackPathNode::new().set_resource_type("example");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 = AttackPathNode::new().set_display_name("example");Sourcepub fn set_associated_findings<T, V>(self, v: T) -> Self
pub fn set_associated_findings<T, V>(self, v: T) -> Self
Sets the value of associated_findings.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::attack_path::attack_path_node::PathNodeAssociatedFinding;
let x = AttackPathNode::new()
.set_associated_findings([
PathNodeAssociatedFinding::default()/* use setters */,
PathNodeAssociatedFinding::default()/* use (different) setters */,
]);Sourcepub fn set_attack_steps<T, V>(self, v: T) -> Self
pub fn set_attack_steps<T, V>(self, v: T) -> Self
Sets the value of attack_steps.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::attack_path::attack_path_node::AttackStepNode;
let x = AttackPathNode::new()
.set_attack_steps([
AttackStepNode::default()/* use setters */,
AttackStepNode::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for AttackPathNode
impl Clone for AttackPathNode
Source§fn clone(&self) -> AttackPathNode
fn clone(&self) -> AttackPathNode
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 AttackPathNode
impl Debug for AttackPathNode
Source§impl Default for AttackPathNode
impl Default for AttackPathNode
Source§fn default() -> AttackPathNode
fn default() -> AttackPathNode
Returns the “default value” for a type. Read more
Source§impl Message for AttackPathNode
impl Message for AttackPathNode
Source§impl PartialEq for AttackPathNode
impl PartialEq for AttackPathNode
impl StructuralPartialEq for AttackPathNode
Auto Trait Implementations§
impl Freeze for AttackPathNode
impl RefUnwindSafe for AttackPathNode
impl Send for AttackPathNode
impl Sync for AttackPathNode
impl Unpin for AttackPathNode
impl UnwindSafe for AttackPathNode
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