pub fn as_date_time(&self) -> Result<DateTime<FixedOffset>, DatamodelError> {
        match &self.value {
            ast::Expression::StringValue(value, _) => {
                self.wrap_error_from_result(DateTime::parse_from_rfc3339(value), "datetime")
            }
            ast::Expression::Any(value, _) => {
                self.wrap_error_from_result(DateTime::parse_from_rfc3339(value), "datetime")
            }
            _ => Err(self.construct_type_mismatch_error("dateTime")),
        }
    }
/// Tries to convert the wrapped value to a Prisma DateTime.
Tries to convert the wrapped value to a Prisma DateTime.
Tries to convert the wrapped value to a Prisma DateTime .
pub fn as_date_time(&self) -> Result<DateTime<FixedOffset>, DatamodelError> {
        match &self.value {
            ast::Expression::StringValue(value, _) => {
                self.wrap_error_from_result(DateTime::parse_from_rfc3339(value), "datetime")
            }
            ast::Expression::Any(value, _) => {
                self.wrap_error_from_result(DateTime::parse_from_rfc3339(value), "datetime")
            }
            _ => Err(self.construct_type_mismatch_error("dateTime")),
        }
    }
pub fn as_date_time ( & self ) -> Result < DateTime < FixedOffset > , DatamodelError > { match & self . value { ast :: Expression :: StringValue ( value , _ ) => { self . wrap_error_from_result ( DateTime :: parse_from_rfc3339 ( value ) , " " ) } ast :: Expression :: Any ( value , _ ) => { self . wrap_error_from_result ( DateTime :: parse_from_rfc3339 ( value ) , " " ) } _ => Err ( self . construct_type_mismatch_error ( " " ) ) , } }
Tries to convert the wrapped value to a Prisma DateTime.
Tries to convert the wrapped value to a Prisma DateTime .
&self
&self