pub struct CreateSessionRequest {
pub app_name: String,
pub user_id: String,
pub state: Option<Value>,
pub session_id: Option<String>,
}Expand description
The parameters for createSession.
Fields§
§app_name: StringThe name of the application.
user_id: StringThe ID of the user.
state: Option<Value>The initial state of the session.
session_id: Option<String>The ID of the session. A new ID will be generated if not provided.
Trait Implementations§
Source§impl Clone for CreateSessionRequest
impl Clone for CreateSessionRequest
Source§fn clone(&self) -> CreateSessionRequest
fn clone(&self) -> CreateSessionRequest
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 CreateSessionRequest
impl Debug for CreateSessionRequest
Source§impl Default for CreateSessionRequest
impl Default for CreateSessionRequest
Source§fn default() -> CreateSessionRequest
fn default() -> CreateSessionRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateSessionRequest
impl RefUnwindSafe for CreateSessionRequest
impl Send for CreateSessionRequest
impl Sync for CreateSessionRequest
impl Unpin for CreateSessionRequest
impl UnwindSafe for CreateSessionRequest
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