#[non_exhaustive]pub struct Chokepoint {
pub related_findings: Vec<String>,
/* private fields */
}Expand description
Contains details about a chokepoint, which is a resource or resource group where high-risk attack paths converge, based on [attack path simulations] (https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_path_simulations).
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.List of resource names of findings associated with this chokepoint. For example, organizations/123/sources/456/findings/789. This list will have at most 100 findings.
Implementations§
Source§impl Chokepoint
impl Chokepoint
pub fn new() -> Self
Sets the value of related_findings.
§Example
ⓘ
let x = Chokepoint::new().set_related_findings(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for Chokepoint
impl Clone for Chokepoint
Source§fn clone(&self) -> Chokepoint
fn clone(&self) -> Chokepoint
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 Chokepoint
impl Debug for Chokepoint
Source§impl Default for Chokepoint
impl Default for Chokepoint
Source§fn default() -> Chokepoint
fn default() -> Chokepoint
Returns the “default value” for a type. Read more
Source§impl PartialEq for Chokepoint
impl PartialEq for Chokepoint
impl StructuralPartialEq for Chokepoint
Auto Trait Implementations§
impl Freeze for Chokepoint
impl RefUnwindSafe for Chokepoint
impl Send for Chokepoint
impl Sync for Chokepoint
impl Unpin for Chokepoint
impl UnwindSafe for Chokepoint
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