pub fn date_from_str<S>(year: S, month: S, day: S) -> Result<Value<'a>, TOMLError> where S: Into<String> + Clone {
    match Date::from_str(year.clone().into(), month.clone().into(), day.clone().into()) {
      Ok(date) => {
        Ok(Value::DateTime(DateTime::new(date, None)))
      },
      Err(error) => Err(error),
    }
  }
/// Convenience function for creating a `Value::DateTime` containing only a date from string values. Returns
/// `Ok(DateTime)` on success and `Err(TOMLError)` on failure.
///
/// # Examples
///
/// ```
/// use tomllib::types::{Value, DateTime, Date};
///
/// assert_eq!(Value::DateTime(DateTime::new(Date::from_str("2011", "05", "11").unwrap(), None)),
///   Value::date_from_str("2011", "05", "11").unwrap());
/// ```
Convenience function for creating a `Value::DateTime` containing only a date from string values.
Convenience function for creating a ` Value :: DateTime ` containing only a date from string values .
pub fn date_from_str<S>(year: S, month: S, day: S) -> Result<Value<'a>, TOMLError> where S: Into<String> + Clone {
    match Date::from_str(year.clone().into(), month.clone().into(), day.clone().into()) {
      Ok(date) => {
        Ok(Value::DateTime(DateTime::new(date, None)))
      },
      Err(error) => Err(error),
    }
  }
pub fn date_from_str < S > ( year : S , month : S , day : S ) -> Result < Value < ' a > , TOMLError > where S : Into < String > + Clone { match Date :: from_str ( year . clone ( ) . into ( ) , month . clone ( ) . into ( ) , day . clone ( ) . into ( ) ) { Ok ( date ) => { Ok ( Value :: DateTime ( DateTime :: new ( date , None ) ) ) } , Err ( error ) => Err ( error ) , } }
Convenience function for creating a `Value::DateTime` containing only a date from string values.
Convenience function for creating a ` Value :: DateTime ` containing only a date from string values .
year
S
month
S
day
S
year
S
month
S
day
S
examples
```
use tomllib::types::{Value, DateTime, Date}.


` ` ` use tomllib :: types :: { Value DateTime Date } .