aboutsummaryrefslogtreecommitdiffstats
path: root/crates/api-core/src/auth/provider.rs
blob: 803472fd128df1c6d01638d48aa22e152bdb39d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[non_exhaustive]
/// The oauth provider
#[derive(Debug, Clone, Eq, PartialEq, PartialOrd, Ord, Hash)]
#[cfg_attr(
    feature = "utoipa",
    derive(utoipa::ToSchema, serde::Deserialize, serde::Serialize),
    schema(example = "v0"),
    serde(rename_all = "camelCase")
)]
pub enum OauthProvider {
    /// Discord
    #[cfg(feature = "auth-discord")]
    Discord,
}