pub enum DateTimeLeniency {
Strict,
AllowNaive,
AllowSpace,
}Expand description
How much to forgive in dateTime members.
Variants§
Strict
RFC 3339 with a mandatory offset, as the schemas require.
AllowNaive
Also accept a missing offset, interpreted as UTC.
AllowSpace
Also accept a space instead of T, and a missing offset.
Trait Implementations§
Source§impl Clone for DateTimeLeniency
impl Clone for DateTimeLeniency
impl Copy for DateTimeLeniency
Source§impl Debug for DateTimeLeniency
impl Debug for DateTimeLeniency
Source§impl Default for DateTimeLeniency
impl Default for DateTimeLeniency
impl Eq for DateTimeLeniency
Source§impl PartialEq for DateTimeLeniency
impl PartialEq for DateTimeLeniency
impl StructuralPartialEq for DateTimeLeniency
Auto Trait Implementations§
impl Forget for DateTimeLeniency
impl Freeze for DateTimeLeniency
impl RefUnwindSafe for DateTimeLeniency
impl Send for DateTimeLeniency
impl Sync for DateTimeLeniency
impl Unpin for DateTimeLeniency
impl UnsafeUnpin for DateTimeLeniency
impl UnwindSafe for DateTimeLeniency
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