pub struct CheckOptions {
pub client_hmac: Option<String>,
pub since: Option<SinceFilter>,
}Expand description
Options for individual check operations.
Fields§
§client_hmac: Option<String>Custom 256-bit HMAC key (64+ hex characters) for deterministic results. When provided, bypasses server-side HMAC rotation.
since: Option<SinceFilter>Filter results to breaches since this date/time. Can be specified as epoch day (days since Unix epoch) or Unix timestamp.
Implementations§
Source§impl CheckOptions
impl CheckOptions
Sourcepub fn client_hmac(self, hmac: impl Into<String>) -> Self
pub fn client_hmac(self, hmac: impl Into<String>) -> Self
Set a custom HMAC key.
Sourcepub fn since_datetime(self, datetime: DateTime<Utc>) -> Self
pub fn since_datetime(self, datetime: DateTime<Utc>) -> Self
Filter by date using a DateTime.
Sourcepub fn since_date(self, date: NaiveDate) -> Self
pub fn since_date(self, date: NaiveDate) -> Self
Filter by date using a NaiveDate.
Sourcepub fn since_epoch_day(self, epoch_day: u32) -> Self
pub fn since_epoch_day(self, epoch_day: u32) -> Self
Filter by epoch day (days since Unix epoch).
Sourcepub fn since_timestamp(self, timestamp: i64) -> Self
pub fn since_timestamp(self, timestamp: i64) -> Self
Filter by Unix timestamp (seconds since Unix epoch).
Trait Implementations§
Source§impl Clone for CheckOptions
impl Clone for CheckOptions
Source§fn clone(&self) -> CheckOptions
fn clone(&self) -> CheckOptions
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 CheckOptions
impl Debug for CheckOptions
Source§impl Default for CheckOptions
impl Default for CheckOptions
Source§fn default() -> CheckOptions
fn default() -> CheckOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CheckOptions
impl RefUnwindSafe for CheckOptions
impl Send for CheckOptions
impl Sync for CheckOptions
impl Unpin for CheckOptions
impl UnsafeUnpin for CheckOptions
impl UnwindSafe for CheckOptions
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