pub struct CivilDate {
pub year: i32,
pub month: u32,
pub day: u32,
}Expand description
Calendar date without a time zone.
Fields§
§year: i32§month: u32§day: u32Implementations§
Trait Implementations§
Source§impl<R: ?Sized + Sync, S> AsyncValidate<R, S> for CivilDate
impl<R: ?Sized + Sync, S> AsyncValidate<R, S> for CivilDate
fn validate_async_with<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 ValidationContext,
_resolver: &'life2 R,
) -> Pin<Box<dyn Future<Output = Result<(), AsyncValidationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn validate_async<'life0, 'life1, 'async_trait>(
&'life0 self,
resolver: &'life1 R,
) -> Pin<Box<dyn Future<Output = Result<(), AsyncValidationError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
impl Copy for CivilDate
Source§impl<'de> Deserialize<'de> for CivilDate
impl<'de> Deserialize<'de> for CivilDate
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
impl Eq for CivilDate
Source§impl Ord for CivilDate
impl Ord for CivilDate
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 PartialOrd for CivilDate
impl PartialOrd for CivilDate
Source§impl<S> ScopedValidate<S> for CivilDate
impl<S> ScopedValidate<S> for CivilDate
fn validate_scoped_with( &self, ctx: &ValidationContext, ) -> Result<(), Vec<FieldIssue>>
fn validate_scoped(&self) -> Result<(), Vec<FieldIssue>>
impl StructuralPartialEq for CivilDate
Source§impl Validate for CivilDate
impl Validate for CivilDate
fn validate_with(&self, _ctx: &ValidationContext) -> Result<(), Vec<FieldIssue>>
fn validate(&self) -> Result<(), Vec<FieldIssue>>
Auto Trait Implementations§
impl Forget for CivilDate
impl Freeze for CivilDate
impl Move for CivilDate
impl RefUnwindSafe for CivilDate
impl Send for CivilDate
impl Sync for CivilDate
impl Unpin for CivilDate
impl UnsafeUnpin for CivilDate
impl UnwindSafe for CivilDate
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