pub struct DateNoTime {
pub date_no_time: Option<String>,
}
Fields§
§date_no_time: Option<String>
The stand-alone date, in Internet date and time format. To represent special legal values, such as a date of birth, you should use dates with no associated time or time-zone data. Whenever possible, use the standard date_time type. This regular expression does not validate all dates. For example, February 31 is valid and nothing is known about leap years.
Pattern: ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$.
Trait Implementations§
Source§impl Clone for DateNoTime
impl Clone for DateNoTime
Source§fn clone(&self) -> DateNoTime
fn clone(&self) -> DateNoTime
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 DateNoTime
impl Debug for DateNoTime
Source§impl Default for DateNoTime
impl Default for DateNoTime
Source§fn default() -> DateNoTime
fn default() -> DateNoTime
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DateNoTime
impl<'de> Deserialize<'de> for DateNoTime
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
Auto Trait Implementations§
impl Freeze for DateNoTime
impl RefUnwindSafe for DateNoTime
impl Send for DateNoTime
impl Sync for DateNoTime
impl Unpin for DateNoTime
impl UnwindSafe for DateNoTime
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