pub struct CheckMetadata {
pub prefix: String,
pub total_results: usize,
pub hmac_source: HmacSource,
pub time_window: Option<i64>,
pub filter_since: Option<u32>,
pub cached_result: bool,
pub checked_at: DateTime<Utc>,
}Expand description
Metadata about a check operation.
Fields§
§prefix: StringThe 5 or 6-character hash prefix used for k-anonymity.
total_results: usizeTotal number of matching hashes returned by the API.
hmac_source: HmacSourceSource of the HMAC key used.
time_window: Option<i64>Server time window (only present when using server HMAC).
filter_since: Option<u32>The epoch day filter that was applied (if any).
cached_result: boolWhether this result was served from cache.
checked_at: DateTime<Utc>When the check was performed.
Trait Implementations§
Source§impl Clone for CheckMetadata
impl Clone for CheckMetadata
Source§fn clone(&self) -> CheckMetadata
fn clone(&self) -> CheckMetadata
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 CheckMetadata
impl Debug for CheckMetadata
Source§impl<'de> Deserialize<'de> for CheckMetadata
impl<'de> Deserialize<'de> for CheckMetadata
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
Auto Trait Implementations§
impl Freeze for CheckMetadata
impl RefUnwindSafe for CheckMetadata
impl Send for CheckMetadata
impl Sync for CheckMetadata
impl Unpin for CheckMetadata
impl UnsafeUnpin for CheckMetadata
impl UnwindSafe for CheckMetadata
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