#[non_exhaustive]pub struct AttackPathEdge {
pub source: String,
pub destination: String,
/* private fields */
}Expand description
Represents a connection between a source node and a destination node 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.source: StringThe attack node uuid of the source node.
destination: StringThe attack node uuid of the destination node.
Implementations§
Source§impl AttackPathEdge
impl AttackPathEdge
pub fn new() -> Self
Sourcepub fn set_source<T: Into<String>>(self, v: T) -> Self
pub fn set_source<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_destination<T: Into<String>>(self, v: T) -> Self
pub fn set_destination<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AttackPathEdge
impl Clone for AttackPathEdge
Source§fn clone(&self) -> AttackPathEdge
fn clone(&self) -> AttackPathEdge
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 AttackPathEdge
impl Debug for AttackPathEdge
Source§impl Default for AttackPathEdge
impl Default for AttackPathEdge
Source§fn default() -> AttackPathEdge
fn default() -> AttackPathEdge
Returns the “default value” for a type. Read more
Source§impl Message for AttackPathEdge
impl Message for AttackPathEdge
Source§impl PartialEq for AttackPathEdge
impl PartialEq for AttackPathEdge
impl StructuralPartialEq for AttackPathEdge
Auto Trait Implementations§
impl Freeze for AttackPathEdge
impl RefUnwindSafe for AttackPathEdge
impl Send for AttackPathEdge
impl Sync for AttackPathEdge
impl Unpin for AttackPathEdge
impl UnwindSafe for AttackPathEdge
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