#[non_exhaustive]pub struct VirusDetail {
pub vendor: String,
pub names: Vec<String>,
pub threat_type: ThreatType,
/* private fields */
}Expand description
Details of an identified virus
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.vendor: StringName of vendor that produced this virus identification.
names: Vec<String>Names of this Virus.
threat_type: ThreatTypeThreat type of the identified virus
Implementations§
Source§impl VirusDetail
impl VirusDetail
pub fn new() -> Self
Sourcepub fn set_vendor<T: Into<String>>(self, v: T) -> Self
pub fn set_vendor<T: Into<String>>(self, v: T) -> Self
Sets the value of vendor.
Sourcepub fn set_threat_type<T: Into<ThreatType>>(self, v: T) -> Self
pub fn set_threat_type<T: Into<ThreatType>>(self, v: T) -> Self
Sets the value of threat_type.
Trait Implementations§
Source§impl Clone for VirusDetail
impl Clone for VirusDetail
Source§fn clone(&self) -> VirusDetail
fn clone(&self) -> VirusDetail
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 VirusDetail
impl Debug for VirusDetail
Source§impl Default for VirusDetail
impl Default for VirusDetail
Source§fn default() -> VirusDetail
fn default() -> VirusDetail
Returns the “default value” for a type. Read more
Source§impl Message for VirusDetail
impl Message for VirusDetail
Source§impl PartialEq for VirusDetail
impl PartialEq for VirusDetail
impl StructuralPartialEq for VirusDetail
Auto Trait Implementations§
impl Freeze for VirusDetail
impl RefUnwindSafe for VirusDetail
impl Send for VirusDetail
impl Sync for VirusDetail
impl Unpin for VirusDetail
impl UnwindSafe for VirusDetail
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