pub struct Auth {
pub api_key: Option<String>,
pub session: Option<String>,
}Expand description
The credentials a RestClient sends. Shared by every clone of a client,
so setting a key or session on one applies to all of them.
Fields§
§api_key: Option<String>Pairing key, sent as X-ADOS-Key.
session: Option<String>Dashboard PIN session, sent as X-ADOS-Dashboard-Session.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Auth
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnsafeUnpin for Auth
impl UnwindSafe for Auth
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