#[non_exhaustive]pub struct SearchHashesRequest {
pub hash_prefix: Bytes,
pub threat_types: Vec<ThreatType>,
/* private fields */
}Expand description
Request to return full hashes matched by the provided hash prefixes.
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.hash_prefix: BytesA hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is base64-encoded. Note that if this parameter is provided by a URI, it must be encoded using the web safe base64 variant (RFC 4648).
threat_types: Vec<ThreatType>Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
Implementations§
Source§impl SearchHashesRequest
impl SearchHashesRequest
pub fn new() -> Self
Sourcepub fn set_hash_prefix<T: Into<Bytes>>(self, v: T) -> Self
pub fn set_hash_prefix<T: Into<Bytes>>(self, v: T) -> Self
Sets the value of hash_prefix.
Sourcepub fn set_threat_types<T, V>(self, v: T) -> Self
pub fn set_threat_types<T, V>(self, v: T) -> Self
Sets the value of threat_types.
Trait Implementations§
Source§impl Clone for SearchHashesRequest
impl Clone for SearchHashesRequest
Source§fn clone(&self) -> SearchHashesRequest
fn clone(&self) -> SearchHashesRequest
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 SearchHashesRequest
impl Debug for SearchHashesRequest
Source§impl Default for SearchHashesRequest
impl Default for SearchHashesRequest
Source§fn default() -> SearchHashesRequest
fn default() -> SearchHashesRequest
Returns the “default value” for a type. Read more
Source§impl Message for SearchHashesRequest
impl Message for SearchHashesRequest
Source§impl PartialEq for SearchHashesRequest
impl PartialEq for SearchHashesRequest
impl StructuralPartialEq for SearchHashesRequest
Auto Trait Implementations§
impl !Freeze for SearchHashesRequest
impl RefUnwindSafe for SearchHashesRequest
impl Send for SearchHashesRequest
impl Sync for SearchHashesRequest
impl Unpin for SearchHashesRequest
impl UnwindSafe for SearchHashesRequest
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