ddnet_accounts_shared/account_server/
account_token.rs

1use serde::{Deserialize, Serialize};
2use thiserror::Error;
3use url::Url;
4
5/// The response of a account token request by the client.
6#[derive(Debug, Error, Clone, Serialize, Deserialize)]
7pub enum AccountTokenError {
8    /// Token invalid, probably timed out
9    #[error("Because of spam you have to visit this web page to continue: {url}.")]
10    WebValidationProcessNeeded {
11        /// The url the client has to visit in order to continue
12        url: Url,
13    },
14}