#[non_exhaustive]pub struct Indicator {
pub ip_addresses: Vec<String>,
pub domains: Vec<String>,
pub signatures: Vec<ProcessSignature>,
pub uris: Vec<String>,
/* private fields */
}Expand description
Represents what’s commonly known as an indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. For more information, see Indicator of compromise.
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.ip_addresses: Vec<String>The list of IP addresses that are associated with the finding.
domains: Vec<String>List of domains associated to the Finding.
signatures: Vec<ProcessSignature>The list of matched signatures indicating that the given process is present in the environment.
uris: Vec<String>The list of URIs associated to the Findings.
Implementations§
Source§impl Indicator
impl Indicator
pub fn new() -> Self
Sourcepub fn set_ip_addresses<T, V>(self, v: T) -> Self
pub fn set_ip_addresses<T, V>(self, v: T) -> Self
Sets the value of ip_addresses.
§Example
ⓘ
let x = Indicator::new().set_ip_addresses(["a", "b", "c"]);Sourcepub fn set_domains<T, V>(self, v: T) -> Self
pub fn set_domains<T, V>(self, v: T) -> Self
Sourcepub fn set_signatures<T, V>(self, v: T) -> Self
pub fn set_signatures<T, V>(self, v: T) -> Self
Sets the value of signatures.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::indicator::ProcessSignature;
let x = Indicator::new()
.set_signatures([
ProcessSignature::default()/* use setters */,
ProcessSignature::default()/* use (different) setters */,
]);Trait Implementations§
impl StructuralPartialEq for Indicator
Auto Trait Implementations§
impl Freeze for Indicator
impl RefUnwindSafe for Indicator
impl Send for Indicator
impl Sync for Indicator
impl Unpin for Indicator
impl UnwindSafe for Indicator
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