Struct oxsdatatypes::GMonth
source · pub struct GMonth { /* private fields */ }
Expand description
It encodes the value using a number of seconds from the Gregorian calendar era using a Decimal
,
when combined with the year 1972 and the day-time 31T00:00:00, and an optional timezone offset in minutes.
Implementations§
source§impl GMonth
impl GMonth
pub fn from_be_bytes(bytes: [u8; 18]) -> Self
pub fn month(&self) -> u8
pub fn timezone(&self) -> Option<DayTimeDuration>
pub fn timezone_offset(&self) -> Option<TimezoneOffset>
pub fn adjust(&self, timezone_offset: Option<TimezoneOffset>) -> Option<Self>
pub fn to_be_bytes(self) -> [u8; 18]
sourcepub fn is_identical_with(&self, other: &Self) -> bool
pub fn is_identical_with(&self, other: &Self) -> bool
Checks if the two values are identical.
Trait Implementations§
source§impl FromStr for GMonth
impl FromStr for GMonth
§type Err = XsdParseError
type Err = XsdParseError
The associated error which can be returned from parsing.
source§impl PartialEq<GMonth> for GMonth
impl PartialEq<GMonth> for GMonth
source§impl PartialOrd<GMonth> for GMonth
impl PartialOrd<GMonth> for GMonth
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<Date> for GMonth
impl TryFrom<Date> for GMonth
Conversion according to XPath cast rules.
§type Error = DateTimeError
type Error = DateTimeError
The type returned in the event of a conversion error.
source§impl TryFrom<DateTime> for GMonth
impl TryFrom<DateTime> for GMonth
Conversion according to XPath cast rules.
§type Error = DateTimeError
type Error = DateTimeError
The type returned in the event of a conversion error.
source§impl TryFrom<GMonthDay> for GMonth
impl TryFrom<GMonthDay> for GMonth
§type Error = DateTimeError
type Error = DateTimeError
The type returned in the event of a conversion error.
source§impl TryFrom<GYearMonth> for GMonth
impl TryFrom<GYearMonth> for GMonth
§type Error = DateTimeError
type Error = DateTimeError
The type returned in the event of a conversion error.
source§fn try_from(year_month: GYearMonth) -> Result<Self, DateTimeError>
fn try_from(year_month: GYearMonth) -> Result<Self, DateTimeError>
Performs the conversion.
impl Copy for GMonth
impl Eq for GMonth
impl StructuralEq for GMonth
impl StructuralPartialEq for GMonth
Auto Trait Implementations§
impl RefUnwindSafe for GMonth
impl Send for GMonth
impl Sync for GMonth
impl Unpin for GMonth
impl UnwindSafe for GMonth
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