pub struct GoogleSecuritySafebrowsingV4ThreatEntry {
pub digest: Option<Vec<u8>>,
pub hash: Option<Vec<u8>>,
pub url: Option<String>,
}
Expand description
An individual threat; for example, a malicious URL or its hash representation. Only one of these fields should be set.
This type is not used in any activity, and only used as part of another schema.
Fields§
§digest: Option<Vec<u8>>
The digest of an executable in SHA256 format. The API supports both binary and hex digests. For JSON requests, digests are base64-encoded.
hash: Option<Vec<u8>>
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.
url: Option<String>
A URL.
Trait Implementations§
source§impl Clone for GoogleSecuritySafebrowsingV4ThreatEntry
impl Clone for GoogleSecuritySafebrowsingV4ThreatEntry
source§fn clone(&self) -> GoogleSecuritySafebrowsingV4ThreatEntry
fn clone(&self) -> GoogleSecuritySafebrowsingV4ThreatEntry
Returns a copy 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 Default for GoogleSecuritySafebrowsingV4ThreatEntry
impl Default for GoogleSecuritySafebrowsingV4ThreatEntry
source§fn default() -> GoogleSecuritySafebrowsingV4ThreatEntry
fn default() -> GoogleSecuritySafebrowsingV4ThreatEntry
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GoogleSecuritySafebrowsingV4ThreatEntry
impl<'de> Deserialize<'de> for GoogleSecuritySafebrowsingV4ThreatEntry
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 Part for GoogleSecuritySafebrowsingV4ThreatEntry
Auto Trait Implementations§
impl RefUnwindSafe for GoogleSecuritySafebrowsingV4ThreatEntry
impl Send for GoogleSecuritySafebrowsingV4ThreatEntry
impl Sync for GoogleSecuritySafebrowsingV4ThreatEntry
impl Unpin for GoogleSecuritySafebrowsingV4ThreatEntry
impl UnwindSafe for GoogleSecuritySafebrowsingV4ThreatEntry
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