paypal_rust/resources/date_no_time.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, Deserialize, Serialize)]
4pub struct DateNoTime {
5 /// The stand-alone date, in Internet date and time format. To represent special legal values, such as a date of birth,
6 /// you should use dates with no associated time or time-zone data. Whenever possible, use the standard date_time type.
7 /// This regular expression does not validate all dates. For example, February 31 is valid and nothing is known about leap years.
8 ///
9 /// Pattern: ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$.
10 #[serde(skip_serializing_if = "Option::is_none")]
11 pub date_no_time: Option<String>,
12}