ruwuma/crates/ruma-common/src/authentication.rs
2023-01-13 13:49:59 +01:00

16 lines
365 B
Rust

//! Common types for authentication.
use crate::{serde::StringEnum, PrivOwnedStr};
/// Access token types.
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/doc/string_enum.md"))]
#[derive(Clone, PartialEq, Eq, StringEnum)]
#[non_exhaustive]
pub enum TokenType {
/// Bearer token type
Bearer,
#[doc(hidden)]
_Custom(PrivOwnedStr),
}