pub struct Name {
pub value: String,
pub source: Option<ExternalReference>,
pub confidence: Option<String>,
}Expand description
Captures the name of a malware instance, family, or alias
Includes the actual name value along with optional source and confidence information.
Fields§
§value: StringThe actual name value
source: Option<ExternalReference>Source of the name (e.g., AV vendor, researcher)
confidence: Option<String>Confidence in the accuracy of the assigned name
Implementations§
Source§impl Name
impl Name
Sourcepub fn with_source(value: impl Into<String>, source: ExternalReference) -> Self
pub fn with_source(value: impl Into<String>, source: ExternalReference) -> Self
Creates a Name with a source
Sourcepub fn with_confidence(
value: impl Into<String>,
source: ExternalReference,
confidence: impl Into<String>,
) -> Self
pub fn with_confidence( value: impl Into<String>, source: ExternalReference, confidence: impl Into<String>, ) -> Self
Creates a Name with source and confidence
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Name
impl<'de> Deserialize<'de> for Name
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
impl Eq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
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