pub struct Session { /* private fields */ }Expand description
Base Session without authentication management
Implementations§
Source§impl Session
impl Session
Sourcepub fn with_token(&mut self, token: &str) -> SessionWithToken
pub fn with_token(&mut self, token: &str) -> SessionWithToken
Add existing token to current Session
Sourcepub fn with_credentials(
&mut self,
user_login: &str,
password: &str,
) -> SessionWithLogin
pub fn with_credentials( &mut self, user_login: &str, password: &str, ) -> SessionWithLogin
Add login credentials to current Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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