pub enum Timezone {
Utc,
Offset {
hours: i8,
minutes: u8,
},
}Expand description
Represents a timezone specification.
§Examples
use temps_core::Timezone;
// UTC timezone ("Z")
let utc = Timezone::Utc;
// Offset timezone ("+02:00")
let offset = Timezone::Offset { hours: 2, minutes: 0 };
// Negative offset ("-05:30")
let negative = Timezone::Offset { hours: -5, minutes: 30 };Variants§
Trait Implementations§
impl Copy for Timezone
impl Eq for Timezone
impl StructuralPartialEq for Timezone
Auto Trait Implementations§
impl Freeze for Timezone
impl RefUnwindSafe for Timezone
impl Send for Timezone
impl Sync for Timezone
impl Unpin for Timezone
impl UnwindSafe for Timezone
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