pub struct ThreatData {
pub vulnerabilities: Vec<Vulnerability>,
pub iocs: Vec<IOC>,
pub threat_actors: Vec<ThreatActor>,
pub raw_data: Option<Value>,
}Expand description
Data returned from a threat intelligence source
Fields§
§vulnerabilities: Vec<Vulnerability>§iocs: Vec<IOC>§threat_actors: Vec<ThreatActor>§raw_data: Option<Value>Implementations§
Source§impl ThreatData
impl ThreatData
Sourcepub fn add_vulnerability(&mut self, vuln: Vulnerability)
pub fn add_vulnerability(&mut self, vuln: Vulnerability)
Add a vulnerability to the data
Sourcepub fn add_threat_actor(&mut self, actor: ThreatActor)
pub fn add_threat_actor(&mut self, actor: ThreatActor)
Add a threat actor to the data
Sourcepub fn total_count(&self) -> usize
pub fn total_count(&self) -> usize
Get the total count of all data types
Trait Implementations§
Source§impl Clone for ThreatData
impl Clone for ThreatData
Source§fn clone(&self) -> ThreatData
fn clone(&self) -> ThreatData
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 ThreatData
impl Debug for ThreatData
Source§impl Default for ThreatData
impl Default for ThreatData
Source§fn default() -> ThreatData
fn default() -> ThreatData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThreatData
impl RefUnwindSafe for ThreatData
impl Send for ThreatData
impl Sync for ThreatData
impl Unpin for ThreatData
impl UnwindSafe for ThreatData
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