1 2 3 4 5 6 7 8 9 10 11 12 13
//! Common types for authentication. use ruma_serde::StringEnum; /// Access token types. #[derive(Clone, Debug, PartialEq, Eq, StringEnum)] pub enum TokenType { /// Bearer token type Bearer, #[doc(hidden)] _Custom(String), }