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

ambee/giterated

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

Refactor handshake messages

Amber - ⁨2⁩ years ago

parent: tbd commit: ⁨6c50283

⁨src/messages/mod.rs⁩ - ⁨443⁩ 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 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