torus_http/
status.rs

1//! Http status wrapper
2use std::fmt::Display;
3
4// TODO: yeah fill this out should not take long but too lazy rn
5#[non_exhaustive]
6#[derive(Hash, Eq, PartialEq, PartialOrd, Ord, Clone, Debug, Default)]
7pub enum HttpStatus {
8    #[default]
9    Ok = 200,
10}
11
12impl Display for HttpStatus {
13    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
14        match self {
15            HttpStatus::Ok => write!(f, "200 OK"),
16        }
17    }
18}