pub struct TimezoneValue {
pub offset_minutes: i16,
}Expand description
UTC offset in signed whole minutes; |offset_minutes| is at most 23:59.
Fields§
§offset_minutes: i16Implementations§
Source§impl TimezoneValue
impl TimezoneValue
Sourcepub fn from_offset_seconds(seconds: i32) -> Option<Self>
pub fn from_offset_seconds(seconds: i32) -> Option<Self>
None when seconds is not a whole number of minutes within ±23:59.
pub fn offset_seconds(&self) -> i32
Trait Implementations§
Source§impl Clone for TimezoneValue
impl Clone for TimezoneValue
Source§impl Debug for TimezoneValue
impl Debug for TimezoneValue
Source§impl<'de> Deserialize<'de> for TimezoneValue
impl<'de> Deserialize<'de> for TimezoneValue
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TimezoneValue
impl Display for TimezoneValue
impl Eq for TimezoneValue
Source§impl FromStr for TimezoneValue
impl FromStr for TimezoneValue
Source§impl Hash for TimezoneValue
impl Hash for TimezoneValue
Source§impl Ord for TimezoneValue
impl Ord for TimezoneValue
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TimezoneValue
impl PartialEq for TimezoneValue
Source§impl PartialOrd for TimezoneValue
impl PartialOrd for TimezoneValue
Source§impl Serialize for TimezoneValue
impl Serialize for TimezoneValue
impl StructuralPartialEq for TimezoneValue
Auto Trait Implementations§
impl Freeze for TimezoneValue
impl RefUnwindSafe for TimezoneValue
impl Send for TimezoneValue
impl Sync for TimezoneValue
impl Unpin for TimezoneValue
impl UnsafeUnpin for TimezoneValue
impl UnwindSafe for TimezoneValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.