[][src]Struct epitok::auth::Auth

pub struct Auth { /* fields omitted */ }

Authentication

Authentication and identity verification to the intranet

You can use the library without this module, this is just an autologin storage and verifier

Implementations

impl Auth[src]

pub fn new() -> Self[src]

Create with empty fields

pub async fn sign_in<'_, '_>(
    &'_ mut self,
    autologin: &'_ str
) -> Result<(), Box<dyn Error>>
[src]

Sign-in with autologin link

pub fn sign_out(&mut self)[src]

Sign-out

pub fn autologin(&self) -> &Option<String>[src]

Retrieve autologin link

pub fn login(&self) -> &Option<String>[src]

Retrieve email address

pub fn name(&self) -> &Option<String>[src]

Retrieve name

pub fn status(&self) -> &Status[src]

Get current status

Trait Implementations

impl Default for Auth[src]

Auto Trait Implementations

impl RefUnwindSafe for Auth

impl Send for Auth

impl Sync for Auth

impl Unpin for Auth

impl UnwindSafe for Auth

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.