pub struct Auth0Config {
pub auth0_domain: String,
pub auth0_audience: String,
pub auth0_client_id: String,
pub auth0_client_secret: String,
}Fields§
§auth0_domain: String§auth0_audience: String§auth0_client_id: String§auth0_client_secret: StringImplementations§
Source§impl Auth0Config
impl Auth0Config
pub fn from_env() -> Result<Self, AppError>
pub fn auth0_issuer(&self) -> String
pub fn auth0_jwks_uri(&self) -> String
pub fn auth0_token_url(&self) -> String
Trait Implementations§
Source§impl Clone for Auth0Config
impl Clone for Auth0Config
Source§fn clone(&self) -> Auth0Config
fn clone(&self) -> Auth0Config
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Auth0Config
impl RefUnwindSafe for Auth0Config
impl Send for Auth0Config
impl Sync for Auth0Config
impl Unpin for Auth0Config
impl UnsafeUnpin for Auth0Config
impl UnwindSafe for Auth0Config
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