#[non_exhaustive]pub struct PathNodeAssociatedFinding {
pub canonical_finding: String,
pub finding_category: String,
pub name: String,
/* private fields */
}Expand description
A finding that is associated with this node in the 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.canonical_finding: StringCanonical name of the associated findings. Example:
organizations/123/sources/456/findings/789
finding_category: StringThe additional taxonomy group within findings from a given source.
name: StringFull resource name of the finding.
Implementations§
Source§impl PathNodeAssociatedFinding
impl PathNodeAssociatedFinding
pub fn new() -> Self
Sourcepub fn set_canonical_finding<T: Into<String>>(self, v: T) -> Self
pub fn set_canonical_finding<T: Into<String>>(self, v: T) -> Self
Sets the value of canonical_finding.
§Example
ⓘ
let x = PathNodeAssociatedFinding::new().set_canonical_finding("example");Sourcepub fn set_finding_category<T: Into<String>>(self, v: T) -> Self
pub fn set_finding_category<T: Into<String>>(self, v: T) -> Self
Sets the value of finding_category.
§Example
ⓘ
let x = PathNodeAssociatedFinding::new().set_finding_category("example");Trait Implementations§
Source§impl Clone for PathNodeAssociatedFinding
impl Clone for PathNodeAssociatedFinding
Source§fn clone(&self) -> PathNodeAssociatedFinding
fn clone(&self) -> PathNodeAssociatedFinding
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 PathNodeAssociatedFinding
impl Debug for PathNodeAssociatedFinding
Source§impl Default for PathNodeAssociatedFinding
impl Default for PathNodeAssociatedFinding
Source§fn default() -> PathNodeAssociatedFinding
fn default() -> PathNodeAssociatedFinding
Returns the “default value” for a type. Read more
Source§impl Message for PathNodeAssociatedFinding
impl Message for PathNodeAssociatedFinding
impl StructuralPartialEq for PathNodeAssociatedFinding
Auto Trait Implementations§
impl Freeze for PathNodeAssociatedFinding
impl RefUnwindSafe for PathNodeAssociatedFinding
impl Send for PathNodeAssociatedFinding
impl Sync for PathNodeAssociatedFinding
impl Unpin for PathNodeAssociatedFinding
impl UnwindSafe for PathNodeAssociatedFinding
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