aboutsummaryrefslogtreecommitdiffstats
path: root/crates/api-core/src/auth/provider.rs
blob: 7bcd50438841816e7c88d749d75a57a1e708ca24 (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 = "discord"),
    serde(rename_all = "camelCase")
)]
pub enum OauthProvider {
    /// Discord
    #[cfg(feature = "auth-discord")]
    Discord,
}