#[non_exhaustive]pub struct AttackStepNode {
pub uuid: String,
pub type: NodeType,
pub display_name: String,
pub labels: HashMap<String, String>,
pub description: String,
/* private fields */
}Expand description
Detailed steps the attack can take between path nodes.
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.uuid: StringUnique ID for one Node
type: NodeTypeAttack step type. Can be either AND, OR or DEFENSE
display_name: StringUser friendly name of the attack step
labels: HashMap<String, String>Attack step labels for metadata
description: StringAttack step description
Implementations§
Source§impl AttackStepNode
impl AttackStepNode
pub fn new() -> Self
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 = AttackStepNode::new().set_display_name("example");Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AttackStepNode
impl Clone for AttackStepNode
Source§fn clone(&self) -> AttackStepNode
fn clone(&self) -> AttackStepNode
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 AttackStepNode
impl Debug for AttackStepNode
Source§impl Default for AttackStepNode
impl Default for AttackStepNode
Source§fn default() -> AttackStepNode
fn default() -> AttackStepNode
Returns the “default value” for a type. Read more
Source§impl Message for AttackStepNode
impl Message for AttackStepNode
Source§impl PartialEq for AttackStepNode
impl PartialEq for AttackStepNode
impl StructuralPartialEq for AttackStepNode
Auto Trait Implementations§
impl Freeze for AttackStepNode
impl RefUnwindSafe for AttackStepNode
impl Send for AttackStepNode
impl Sync for AttackStepNode
impl Unpin for AttackStepNode
impl UnwindSafe for AttackStepNode
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