More derives for types.

Addee new_safe constructor for Interval type
This commit is contained in:
Martin Berg Alstad
2024-08-25 00:55:14 +02:00
parent 17c81f4da1
commit 762330189d
3 changed files with 60 additions and 5 deletions

View File

@ -2,7 +2,7 @@ use diesel::result::Error;
use thiserror::Error;
/// Error type for CRUD operations
#[derive(Debug, Error)]
#[derive(Debug, PartialEq, Error)]
pub enum CrudError {
#[error("Resource not found")]
NotFound,