pub fn check_times(&self) -> Result<(), chrono::ParseError> {
        NaiveDateTime::parse_from_str(&self.start, "%F %R")
            .or(NaiveDateTime::parse_from_str(&self.start, "%F %T"))
            .and(
                NaiveDateTime::parse_from_str(&self.end, "%F %R")
                    .or(NaiveDateTime::parse_from_str(&self.end, "%F %T")),
            )
            .and(Ok(()))
    }
/// Verifies that the start and end times are valid
Verifies that the start and end times are valid
Verifies that the start and end times are valid
pub fn check_times(&self) -> Result<(), chrono::ParseError> {
        NaiveDateTime::parse_from_str(&self.start, "%F %R")
            .or(NaiveDateTime::parse_from_str(&self.start, "%F %T"))
            .and(
                NaiveDateTime::parse_from_str(&self.end, "%F %R")
                    .or(NaiveDateTime::parse_from_str(&self.end, "%F %T")),
            )
            .and(Ok(()))
    }
pub fn check_times ( & self ) -> Result < ( ) , chrono :: ParseError > { NaiveDateTime :: parse_from_str ( & self . start , " " ) . or ( NaiveDateTime :: parse_from_str ( & self . start , " " ) ) . and ( NaiveDateTime :: parse_from_str ( & self . end , " " ) . or ( NaiveDateTime :: parse_from_str ( & self . end , " " ) ) , ) . and ( Ok ( ( ) ) ) }
Verifies that the start and end times are valid
Verifies that the start and end times are valid
&self
&self