[−][src]Struct epitok::auth::Auth
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]
&'_ mut self,
autologin: &'_ str
) -> Result<(), Box<dyn Error>>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,