pub enum ThreatType {
Unspecified,
Malware,
SocialEngineering,
UnwantedSoftware,
PotentiallyHarmfulApplication,
}
Expand description
Types of threats in the Safe Browsing API
Variants§
Unspecified
Unknown threat type
Malware
Malware threat
SocialEngineering
Social engineering/phishing
UnwantedSoftware
Unwanted software
PotentiallyHarmfulApplication
Potentially harmful application
Trait Implementations§
Source§impl Clone for ThreatType
impl Clone for ThreatType
Source§fn clone(&self) -> ThreatType
fn clone(&self) -> ThreatType
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 ThreatType
impl Debug for ThreatType
Source§impl<'de> Deserialize<'de> for ThreatType
impl<'de> Deserialize<'de> for ThreatType
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
Source§impl Display for ThreatType
impl Display for ThreatType
Source§impl From<ThreatType> for i32
impl From<ThreatType> for i32
Source§fn from(tt: ThreatType) -> i32
fn from(tt: ThreatType) -> i32
Converts to this type from the input type.
Source§impl From<i32> for ThreatType
impl From<i32> for ThreatType
Source§impl Hash for ThreatType
impl Hash for ThreatType
Source§impl PartialEq for ThreatType
impl PartialEq for ThreatType
Source§impl Serialize for ThreatType
impl Serialize for ThreatType
impl Copy for ThreatType
impl Eq for ThreatType
impl StructuralPartialEq for ThreatType
Auto Trait Implementations§
impl Freeze for ThreatType
impl RefUnwindSafe for ThreatType
impl Send for ThreatType
impl Sync for ThreatType
impl Unpin for ThreatType
impl UnwindSafe for ThreatType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.