Struct aws_sdk_securityhub::types::Malware
source · #[non_exhaustive]pub struct Malware {
pub name: Option<String>,
pub type: Option<MalwareType>,
pub path: Option<String>,
pub state: Option<MalwareState>,
}
Expand description
A list of malware related to a finding.
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.name: Option<String>
The name of the malware that was observed.
Length Constraints: Minimum of 1. Maximum of 64.
type: Option<MalwareType>
The type of the malware that was observed.
path: Option<String>
The file system path of the malware that was observed.
Length Constraints: Minimum of 1. Maximum of 512.
state: Option<MalwareState>
The state of the malware that was observed.
Implementations§
source§impl Malware
impl Malware
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the malware that was observed.
Length Constraints: Minimum of 1. Maximum of 64.
sourcepub fn type(&self) -> Option<&MalwareType>
pub fn type(&self) -> Option<&MalwareType>
The type of the malware that was observed.
sourcepub fn path(&self) -> Option<&str>
pub fn path(&self) -> Option<&str>
The file system path of the malware that was observed.
Length Constraints: Minimum of 1. Maximum of 512.
sourcepub fn state(&self) -> Option<&MalwareState>
pub fn state(&self) -> Option<&MalwareState>
The state of the malware that was observed.
Trait Implementations§
source§impl PartialEq for Malware
impl PartialEq for Malware
impl StructuralPartialEq for Malware
Auto Trait Implementations§
impl Freeze for Malware
impl RefUnwindSafe for Malware
impl Send for Malware
impl Sync for Malware
impl Unpin for Malware
impl UnwindSafe for Malware
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.