pub struct AuthClient { /* private fields */ }Expand description
Auth module client.
Implementations§
Source§impl AuthClient
impl AuthClient
Sourcepub fn bearer_token(&self) -> Option<&str>
pub fn bearer_token(&self) -> Option<&str>
Return the configured bearer token, if any.
Sourcepub fn sign_in(
&self,
_username: &str,
_password: &str,
) -> Result<(), KrabkaError>
pub fn sign_in( &self, _username: &str, _password: &str, ) -> Result<(), KrabkaError>
Sign-in is outside contract v1.
§Errors
Always returns KrabkaError::Unauthenticated because sign-in is not
part of contract v1.
Trait Implementations§
Source§impl Clone for AuthClient
impl Clone for AuthClient
Source§fn clone(&self) -> AuthClient
fn clone(&self) -> AuthClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthClient
impl Debug for AuthClient
Source§impl Default for AuthClient
impl Default for AuthClient
Source§fn default() -> AuthClient
fn default() -> AuthClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuthClient
impl RefUnwindSafe for AuthClient
impl Send for AuthClient
impl Sync for AuthClient
impl Unpin for AuthClient
impl UnsafeUnpin for AuthClient
impl UnwindSafe for AuthClient
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