Trait AuthState

Source
pub trait AuthState {
    // Required method
    fn get_session_id(&self) -> Option<&str>;
}
Expand description

The “authentication” state of a client object

This is used to allow API methods to require authentication, e.g., if they require some piece of auth data (e.g. database, login/uid, etc).

Required Methods§

Source

fn get_session_id(&self) -> Option<&str>

Get the current stored session_id, if available

Implementors§