pub struct AuthClient {
pub client: Client,
pub config: AuthConfig,
}Fields§
§client: Client§config: AuthConfigImplementations§
Source§impl AuthClient
impl AuthClient
pub fn new(config: AuthConfig) -> Result<Self, AuthError>
pub fn get_user_data<T: DeserializeOwned>( &self, token: &str, ) -> Result<T, AuthError>
Trait Implementations§
Auto Trait Implementations§
impl Forget for AuthClient
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