pub struct CalendarYear(pub u32);Expand description
A numeric calendar year received in a response.
This is distinct from string-backed fiscal years and query-year units so the provider’s JSON number representation remains part of the contract.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl Clone for CalendarYear
impl Clone for CalendarYear
impl Copy for CalendarYear
Source§impl Debug for CalendarYear
impl Debug for CalendarYear
Source§impl<'de> Deserialize<'de> for CalendarYear
impl<'de> Deserialize<'de> for CalendarYear
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 Display for CalendarYear
impl Display for CalendarYear
impl Eq for CalendarYear
Source§impl From<CalendarYear> for u32
impl From<CalendarYear> for u32
Source§fn from(value: CalendarYear) -> Self
fn from(value: CalendarYear) -> Self
Converts to this type from the input type.
Source§impl From<u32> for CalendarYear
impl From<u32> for CalendarYear
Source§impl Hash for CalendarYear
impl Hash for CalendarYear
Source§impl Ord for CalendarYear
impl Ord for CalendarYear
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 CalendarYear
impl PartialEq for CalendarYear
Source§impl PartialOrd for CalendarYear
impl PartialOrd for CalendarYear
Source§impl Serialize for CalendarYear
impl Serialize for CalendarYear
impl StructuralPartialEq for CalendarYear
Auto Trait Implementations§
impl Freeze for CalendarYear
impl RefUnwindSafe for CalendarYear
impl Send for CalendarYear
impl Sync for CalendarYear
impl Unpin for CalendarYear
impl UnsafeUnpin for CalendarYear
impl UnwindSafe for CalendarYear
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