pub struct JwtScope(pub String);Expand description
A JWT scope value.
This is a transparent newtype over String with predefined constants
for all available scopes.
Tuple Fields§
§0: StringImplementations§
Source§impl JwtScope
impl JwtScope
pub const DEVICES_LIST: &'static str = "devices:list"
pub const DEVICES_DELETE: &'static str = "devices:delete"
pub const INBOX_LIST: &'static str = "inbox:list"
pub const INBOX_REFRESH: &'static str = "inbox:refresh"
pub const LOGS_READ: &'static str = "logs:read"
pub const MESSAGES_CANCEL: &'static str = "messages:cancel"
pub const MESSAGES_SEND: &'static str = "messages:send"
pub const MESSAGES_READ: &'static str = "messages:read"
pub const MESSAGES_LIST: &'static str = "messages:list"
pub const MESSAGES_EXPORT: &'static str = "messages:export"
pub const SETTINGS_READ: &'static str = "settings:read"
pub const SETTINGS_WRITE: &'static str = "settings:write"
pub const TOKENS_MANAGE: &'static str = "tokens:manage"
pub const WEBHOOKS_LIST: &'static str = "webhooks:list"
pub const WEBHOOKS_WRITE: &'static str = "webhooks:write"
pub const WEBHOOKS_DELETE: &'static str = "webhooks:delete"
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JwtScope
impl<'de> Deserialize<'de> for JwtScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JwtScope
impl StructuralPartialEq for JwtScope
Auto Trait Implementations§
impl Freeze for JwtScope
impl RefUnwindSafe for JwtScope
impl Send for JwtScope
impl Sync for JwtScope
impl Unpin for JwtScope
impl UnsafeUnpin for JwtScope
impl UnwindSafe for JwtScope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more