1 |
use serde::{Deserialize, Serialize};
|
2 |
use std::fmt::Debug;
|
3 |
|
4 |
use crate::model::user::User;
|
5 |
|
6 |
pub mod authentication;
|
7 |
pub mod discovery;
|
8 |
pub mod handshake;
|
9 |
pub mod issues;
|
10 |
pub mod repository;
|
11 |
pub mod user;
|
12 |
|
13 |
#[derive(Clone, Debug, Serialize, Deserialize, thiserror::Error)]
|
14 |
pub enum ErrorMessage {
|
15 |
#[error("user {0} doesn't exist or isn't valid in this context")]
|
16 |
InvalidUser(User),
|
17 |
#[error("internal error: shutdown")]
|
18 |
Shutdown,
|
19 |
}
|
20 |
|