pub enum SessionAuth {
Cookie,
ApiKey,
}Expand description
How this session client authenticates with the controller.
Variants§
Cookie
Real session cookie from username/password login.
ApiKey
API key passed via X-API-KEY header (no session cookie).
Some session endpoints (e.g. stat/event) are unavailable.
Trait Implementations§
Source§impl Clone for SessionAuth
impl Clone for SessionAuth
Source§fn clone(&self) -> SessionAuth
fn clone(&self) -> SessionAuth
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionAuth
impl Debug for SessionAuth
Source§impl PartialEq for SessionAuth
impl PartialEq for SessionAuth
impl Copy for SessionAuth
impl Eq for SessionAuth
impl StructuralPartialEq for SessionAuth
Auto Trait Implementations§
impl Freeze for SessionAuth
impl RefUnwindSafe for SessionAuth
impl Send for SessionAuth
impl Sync for SessionAuth
impl Unpin for SessionAuth
impl UnsafeUnpin for SessionAuth
impl UnwindSafe for SessionAuth
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