// Copyright 2015 © Samuel Dolt <samuel@dolt.ch>
//
// This file is part of orion_backend.
//
// Orion_backend is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Orion_backend is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with orion_backend.  If not, see <http://www.gnu.org/licenses/>.


use chrono::DateTime;

pub trait OrionLoggerValidator {

    fn is_rfc3339_timestamp(&self) -> bool;
}

impl OrionLoggerValidator for String {
        }
    }


}

    fn is_rfc3339_timestamp(&self) -> bool {
        match DateTime::parse_from_rfc3339(&self) {
            Ok(_) => true,
            Err(_) => false,