pub struct TimezoneSanitizer(pub i16);Expand description
Sanitizer that ensures that all crate::prelude::DateTime values are within a specific timezone.
If you want to ensure that all datetime values are in UTC timezone, you can use directly the UtcSanitizer,
which actually is just a wrapper for this sanitizer with “UTC” as timezone.
The value provided is i16 representing the timezone offset in minutes from UTC.
§Example
Tuple Fields§
§0: i16Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimezoneSanitizer
impl RefUnwindSafe for TimezoneSanitizer
impl Send for TimezoneSanitizer
impl Sync for TimezoneSanitizer
impl Unpin for TimezoneSanitizer
impl UnwindSafe for TimezoneSanitizer
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