pub struct EnvAuth { /* private fields */ }Expand description
Environment variable authentication provider
Implementations§
Source§impl EnvAuth
impl EnvAuth
Sourcepub fn from_env() -> Result<Self, AuthError>
pub fn from_env() -> Result<Self, AuthError>
Create from environment variables (defaults to Search scope)
Sourcepub fn from_env_for_scope(scope: &'static str) -> Result<Self, AuthError>
pub fn from_env_for_scope(scope: &'static str) -> Result<Self, AuthError>
Create from environment variables for a specific resource scope
Sourcepub fn is_configured() -> bool
pub fn is_configured() -> bool
Check if environment variables are set
Trait Implementations§
Source§impl AuthProvider for EnvAuth
impl AuthProvider for EnvAuth
Auto Trait Implementations§
impl Freeze for EnvAuth
impl RefUnwindSafe for EnvAuth
impl Send for EnvAuth
impl Sync for EnvAuth
impl Unpin for EnvAuth
impl UnsafeUnpin for EnvAuth
impl UnwindSafe for EnvAuth
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