Struct rocket_simpleauth::userpass::UserPass
[−]
[src]
pub struct UserPass<'c, T> {
pub user: T,
// some fields omitted
}Fields
user: T
Methods
impl<'c, T> UserPass<'c, T>[src]
pub fn logout(&mut self)[src]
Removes the cookie so the user can be logged out
pub fn into_inner(self) -> T[src]
Get the stored user type
Trait Implementations
impl<'a, 'r, T: FromString> FromRequest<'a, 'r> for UserPass<'a, T>[src]
A request guard that checks if a private cookie was provided
The name of the cookie can be configured with simpleauth_cookie_identifier config key in your Rocket config file.
By default it is "sid" see the config module