Struct oxsdatatypes::TimezoneOffset
source · pub struct TimezoneOffset { /* private fields */ }Expand description
A timezone offset with respect to UTC.
It is encoded as a number of minutes between -PT14H and PT14H.
Implementations§
Trait Implementations§
source§impl Clone for TimezoneOffset
impl Clone for TimezoneOffset
source§fn clone(&self) -> TimezoneOffset
fn clone(&self) -> TimezoneOffset
Returns a copy 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 TimezoneOffset
impl Debug for TimezoneOffset
source§impl Display for TimezoneOffset
impl Display for TimezoneOffset
source§impl From<TimezoneOffset> for DayTimeDuration
impl From<TimezoneOffset> for DayTimeDuration
source§fn from(value: TimezoneOffset) -> Self
fn from(value: TimezoneOffset) -> Self
Converts to this type from the input type.
source§impl From<TimezoneOffset> for Duration
impl From<TimezoneOffset> for Duration
source§fn from(value: TimezoneOffset) -> Self
fn from(value: TimezoneOffset) -> Self
Converts to this type from the input type.
source§impl Hash for TimezoneOffset
impl Hash for TimezoneOffset
source§impl Ord for TimezoneOffset
impl Ord for TimezoneOffset
source§fn cmp(&self, other: &TimezoneOffset) -> Ordering
fn cmp(&self, other: &TimezoneOffset) -> Ordering
1.21.0 · 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
source§impl PartialEq<TimezoneOffset> for TimezoneOffset
impl PartialEq<TimezoneOffset> for TimezoneOffset
source§fn eq(&self, other: &TimezoneOffset) -> bool
fn eq(&self, other: &TimezoneOffset) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<TimezoneOffset> for TimezoneOffset
impl PartialOrd<TimezoneOffset> for TimezoneOffset
source§fn partial_cmp(&self, other: &TimezoneOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &TimezoneOffset) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<DayTimeDuration> for TimezoneOffset
impl TryFrom<DayTimeDuration> for TimezoneOffset
§type Error = DateTimeError
type Error = DateTimeError
The type returned in the event of a conversion error.
source§fn try_from(value: DayTimeDuration) -> Result<Self, DateTimeError>
fn try_from(value: DayTimeDuration) -> Result<Self, DateTimeError>
Performs the conversion.
source§impl TryFrom<Duration> for TimezoneOffset
impl TryFrom<Duration> for TimezoneOffset
§type Error = DateTimeError
type Error = DateTimeError
The type returned in the event of a conversion error.
impl Copy for TimezoneOffset
impl Eq for TimezoneOffset
impl StructuralEq for TimezoneOffset
impl StructuralPartialEq for TimezoneOffset
Auto Trait Implementations§
impl RefUnwindSafe for TimezoneOffset
impl Send for TimezoneOffset
impl Sync for TimezoneOffset
impl Unpin for TimezoneOffset
impl UnwindSafe for TimezoneOffset
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