1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pub mod process;
use std::fmt::Display;

pub use process::*;

#[derive(Debug, Clone, Copy)]
pub enum SignupMethod {
    Email,
    GitHub,
}

impl Display for SignupMethod {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::Email => write!(f, "Email and password"),
            Self::GitHub => write!(f, "GitHub"),
        }
    }
}