Trait salvo::prelude::JwtAuthDepotExt
source · pub trait JwtAuthDepotExt {
// Required methods
fn jwt_auth_token(&self) -> Option<&String>;
fn jwt_auth_data<C>(&self) -> Option<&TokenData<C>>
where C: DeserializeOwned + Send + Sync + 'static;
fn jwt_auth_state(&self) -> JwtAuthState;
fn jwt_auth_error(&self) -> Option<&Error>;
}
Available on crate feature
jwt-auth
only.Expand description
JwtAuthDepotExt
Required Methods§
sourcefn jwt_auth_token(&self) -> Option<&String>
fn jwt_auth_token(&self) -> Option<&String>
get jwt auth token reference from depot.
sourcefn jwt_auth_data<C>(&self) -> Option<&TokenData<C>>
fn jwt_auth_data<C>(&self) -> Option<&TokenData<C>>
get jwt auth decoded data from depot.
sourcefn jwt_auth_state(&self) -> JwtAuthState
fn jwt_auth_state(&self) -> JwtAuthState
get jwt auth state from depot.
sourcefn jwt_auth_error(&self) -> Option<&Error>
fn jwt_auth_error(&self) -> Option<&Error>
get jwt auth error from depot.
Object Safety§
This trait is not object safe.