pub struct ThreatPattern {
pub features: HashMap<String, f64>,
pub threat_type: String,
pub severity_threshold: f64,
}Expand description
Threat pattern representation
Fields§
§features: HashMap<String, f64>§threat_type: String§severity_threshold: f64Implementations§
Source§impl ThreatPattern
impl ThreatPattern
pub fn from_features(features: &HashMap<String, f64>) -> Self
Trait Implementations§
Source§impl Clone for ThreatPattern
impl Clone for ThreatPattern
Source§fn clone(&self) -> ThreatPattern
fn clone(&self) -> ThreatPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThreatPattern
impl Debug for ThreatPattern
Source§impl Default for ThreatPattern
impl Default for ThreatPattern
Source§impl<'de> Deserialize<'de> for ThreatPattern
impl<'de> Deserialize<'de> for ThreatPattern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ThreatPattern
impl RefUnwindSafe for ThreatPattern
impl Send for ThreatPattern
impl Sync for ThreatPattern
impl Unpin for ThreatPattern
impl UnsafeUnpin for ThreatPattern
impl UnwindSafe for ThreatPattern
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