Struct resonite::query::UserSession
source · pub struct UserSession {
pub identifier: LoginCredentialsIdentifier,
pub authentication: UserSessionAuthentication,
pub secret_machine_id: String,
pub remember_me: bool,
}Expand description
A login request body’s data.
Fields§
§identifier: LoginCredentialsIdentifierThe way to identify the user account the request is for
authentication: UserSessionAuthenticationThe authentication for the request
secret_machine_id: StringCan be a random UUID
remember_me: boolIf the session should be valid for 30 days
Trait Implementations§
source§impl Clone for UserSession
impl Clone for UserSession
source§fn clone(&self) -> UserSession
fn clone(&self) -> UserSession
Returns a copy 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 UserSession
impl Debug for UserSession
source§impl<'de> Deserialize<'de> for UserSession
impl<'de> Deserialize<'de> for UserSession
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for UserSession
impl Hash for UserSession
source§impl PartialEq for UserSession
impl PartialEq for UserSession
source§fn eq(&self, other: &UserSession) -> bool
fn eq(&self, other: &UserSession) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Queryable<Authenticating, UserSessionResult> for UserSession
impl Queryable<Authenticating, UserSessionResult> for UserSession
source§fn url(&self, _: &Authenticating) -> String
fn url(&self, _: &Authenticating) -> String
The URL of the request
source§fn body(&self, _state: &Authenticating) -> Option<Result<Vec<u8>>>
fn body(&self, _state: &Authenticating) -> Option<Result<Vec<u8>>>
Creates a JSON body for the request Read more
source§fn method(&self, _: &Authenticating) -> RequestMethod
fn method(&self, _: &Authenticating) -> RequestMethod
The method to use for the request Read more
source§fn deserialize(&self, data: &[u8]) -> Result<UserSessionResult>
fn deserialize(&self, data: &[u8]) -> Result<UserSessionResult>
Deserializes the API response into the struct, by default using
serde_json. Read moresource§impl Serialize for UserSession
impl Serialize for UserSession
impl Eq for UserSession
impl StructuralPartialEq for UserSession
Auto Trait Implementations§
impl Freeze for UserSession
impl RefUnwindSafe for UserSession
impl Send for UserSession
impl Sync for UserSession
impl Unpin for UserSession
impl UnwindSafe for UserSession
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)