#[non_exhaustive]pub struct SearchHashesResponse {
pub threats: Vec<ThreatHash>,
pub negative_expire_time: Option<Timestamp>,
/* private fields */
}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.threats: Vec<ThreatHash>The full hashes that matched the requested prefixes. The hash will be populated in the key.
negative_expire_time: Option<Timestamp>For requested entities that did not match the threat list, how long to cache the response until.
Implementations§
Source§impl SearchHashesResponse
impl SearchHashesResponse
pub fn new() -> Self
Sourcepub fn set_threats<T, V>(self, v: T) -> Self
pub fn set_threats<T, V>(self, v: T) -> Self
Sets the value of threats.
Sourcepub fn set_negative_expire_time<T>(self, v: T) -> Self
pub fn set_negative_expire_time<T>(self, v: T) -> Self
Sets the value of negative_expire_time.
Sourcepub fn set_or_clear_negative_expire_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_negative_expire_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of negative_expire_time.
Trait Implementations§
Source§impl Clone for SearchHashesResponse
impl Clone for SearchHashesResponse
Source§fn clone(&self) -> SearchHashesResponse
fn clone(&self) -> SearchHashesResponse
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 SearchHashesResponse
impl Debug for SearchHashesResponse
Source§impl Default for SearchHashesResponse
impl Default for SearchHashesResponse
Source§fn default() -> SearchHashesResponse
fn default() -> SearchHashesResponse
Returns the “default value” for a type. Read more
Source§impl Message for SearchHashesResponse
impl Message for SearchHashesResponse
Source§impl PartialEq for SearchHashesResponse
impl PartialEq for SearchHashesResponse
impl StructuralPartialEq for SearchHashesResponse
Auto Trait Implementations§
impl Freeze for SearchHashesResponse
impl RefUnwindSafe for SearchHashesResponse
impl Send for SearchHashesResponse
impl Sync for SearchHashesResponse
impl Unpin for SearchHashesResponse
impl UnwindSafe for SearchHashesResponse
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