#[non_exhaustive]pub struct Birthdate {
pub day: i64,
pub month: i64,
pub year: Option<i64>,
}Expand description
Describes the birthdate of a user.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.day: i64Day of the user’s birth; 1-31.
month: i64Month of the user’s birth; 1-12.
year: Option<i64>Year of the user’s birth.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Birthdate
impl<'de> Deserialize<'de> for Birthdate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Birthdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Birthdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Birthdate
impl Serialize for Birthdate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Birthdate
Auto Trait Implementations§
impl Freeze for Birthdate
impl RefUnwindSafe for Birthdate
impl Send for Birthdate
impl Sync for Birthdate
impl Unpin for Birthdate
impl UnsafeUnpin for Birthdate
impl UnwindSafe for Birthdate
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