JavaScript is disabled, refresh for a better experience. ambee/giterated

ambee/giterated

Git repository hosting, collaboration, and discovery for the Fediverse.

Major post-refactor cleanup

Amber - ⁨2⁩ years ago

parent: tbd commit: ⁨f90d7fb

⁨src/messages/mod.rs⁩ - ⁨424⁩ bytes
Raw
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 issues;
9 pub mod repository;
10 pub mod user;
11
12 #[derive(Clone, Debug, Serialize, Deserialize, thiserror::Error)]
13 pub enum ErrorMessage {
14 #[error("user {0} doesn't exist or isn't valid in this context")]
15 InvalidUser(User),
16 #[error("internal error: shutdown")]
17 Shutdown,
18 }
19