#[non_exhaustive]pub struct AttackPath {
pub name: String,
pub path_nodes: Vec<AttackPathNode>,
pub edges: Vec<AttackPathEdge>,
/* private fields */
}Expand description
A path that an attacker could take to reach an exposed resource.
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: StringThe attack path name, for example,
organizations/12/simulations/34/valuedResources/56/attackPaths/78
path_nodes: Vec<AttackPathNode>A list of nodes that exist in this attack path.
edges: Vec<AttackPathEdge>A list of the edges between nodes in this attack path.
Implementations§
Source§impl AttackPath
impl AttackPath
pub fn new() -> Self
Sourcepub fn set_path_nodes<T, V>(self, v: T) -> Self
pub fn set_path_nodes<T, V>(self, v: T) -> Self
Sets the value of path_nodes.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::attack_path::AttackPathNode;
let x = AttackPath::new()
.set_path_nodes([
AttackPathNode::default()/* use setters */,
AttackPathNode::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for AttackPath
impl Clone for AttackPath
Source§fn clone(&self) -> AttackPath
fn clone(&self) -> AttackPath
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 AttackPath
impl Debug for AttackPath
Source§impl Default for AttackPath
impl Default for AttackPath
Source§fn default() -> AttackPath
fn default() -> AttackPath
Returns the “default value” for a type. Read more
Source§impl PartialEq for AttackPath
impl PartialEq for AttackPath
impl StructuralPartialEq for AttackPath
Auto Trait Implementations§
impl Freeze for AttackPath
impl RefUnwindSafe for AttackPath
impl Send for AttackPath
impl Sync for AttackPath
impl Unpin for AttackPath
impl UnwindSafe for AttackPath
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