ForgeFlux/src/auth/application/port/out/db/errors.rs

12 lines
304 B
Rust

use derive_more::Display;
use serde::{Deserialize, Serialize};
pub type OutDBPortResult<V> = Result<V, OutDBPortError>;
#[derive(Debug, Display, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
pub enum OutDBPortError {
DuplicateState,
InternalError,
DuplicateAccessToken,
}