pub struct HumanTimezone(pub FixedOffset);Expand description
Strongly-typed timezone wrapper around chrono::FixedOffset.
Supports deserialization from:
- “+HH:MM” / “-HH:MM” strings (e.g. “+02:00”, “-05:30”)
Rejects offsets outside ±24 hours (and rejects invalid formats).
Tuple Fields§
§0: FixedOffsetTrait Implementations§
Source§impl Clone for HumanTimezone
impl Clone for HumanTimezone
Source§fn clone(&self) -> HumanTimezone
fn clone(&self) -> HumanTimezone
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 HumanTimezone
impl Debug for HumanTimezone
Source§impl<'de> Deserialize<'de> for HumanTimezone
impl<'de> Deserialize<'de> for HumanTimezone
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
Source§impl PartialEq for HumanTimezone
impl PartialEq for HumanTimezone
impl Copy for HumanTimezone
impl Eq for HumanTimezone
impl StructuralPartialEq for HumanTimezone
Auto Trait Implementations§
impl Freeze for HumanTimezone
impl RefUnwindSafe for HumanTimezone
impl Send for HumanTimezone
impl Sync for HumanTimezone
impl Unpin for HumanTimezone
impl UnwindSafe for HumanTimezone
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