pub struct TimeOptions {
pub leeway: Duration,
pub current_time: Option<DateTime<Utc>>,
}Expand description
Time-related validation options.
Fields§
§leeway: DurationLeeway to use during validation.
current_time: Option<DateTime<Utc>>Current time to check against. If not set, the current time will be set to Utc::now().
Trait Implementations§
Source§impl Clone for TimeOptions
impl Clone for TimeOptions
Source§fn clone(&self) -> TimeOptions
fn clone(&self) -> TimeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeOptions
Source§impl Debug for TimeOptions
impl Debug for TimeOptions
Auto Trait Implementations§
impl Freeze for TimeOptions
impl RefUnwindSafe for TimeOptions
impl Send for TimeOptions
impl Sync for TimeOptions
impl Unpin for TimeOptions
impl UnsafeUnpin for TimeOptions
impl UnwindSafe for TimeOptions
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