ruma_common/authentication.rs
1//! Common types for authentication.
2
3use crate::{serde::StringEnum, PrivOwnedStr};
4
5/// Access token types.
6#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/doc/string_enum.md"))]
7#[derive(Clone, PartialEq, Eq, StringEnum)]
8#[non_exhaustive]
9pub enum TokenType {
10 /// Bearer token type
11 Bearer,
12
13 #[doc(hidden)]
14 _Custom(PrivOwnedStr),
15}