pub struct ParseSession {
pub object_id: String,
pub created_at: ParseDate,
pub updated_at: Option<ParseDate>,
pub user: Value,
pub session_token: String,
pub installation_id: Option<String>,
pub expires_at: Option<ParseDate>,
pub restricted: Option<bool>,
pub created_with: Option<Value>,
pub other_fields: HashMap<String, Value>,
}
Expand description
Represents a Parse Server Session object, detailing an active user session.
This struct includes standard fields for a session such as objectId
, sessionToken
,
createdAt
, updatedAt
, expiresAt
, and information about the associated user
.
It also captures installationId
if the session originated from a specific installation,
and createdWith
which describes how the session was initiated (e.g., login, signup).
The user
field is a serde_json::Value
because its content can vary. If the query
fetching the session includes include=user
, this field will contain the full ParseUser
object.
Otherwise, it might be a pointer or a more minimal representation.
Fields§
§object_id: String
§created_at: ParseDate
§updated_at: Option<ParseDate>
§user: Value
The user associated with this session. Can be a full ParseUser
object if include=user
is used.
session_token: String
§installation_id: Option<String>
§expires_at: Option<ParseDate>
§restricted: Option<bool>
§created_with: Option<Value>
§other_fields: HashMap<String, Value>
Trait Implementations§
Source§impl Clone for ParseSession
impl Clone for ParseSession
Source§fn clone(&self) -> ParseSession
fn clone(&self) -> ParseSession
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 ParseSession
impl Debug for ParseSession
Source§impl<'de> Deserialize<'de> for ParseSession
impl<'de> Deserialize<'de> for ParseSession
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
Auto Trait Implementations§
impl Freeze for ParseSession
impl RefUnwindSafe for ParseSession
impl Send for ParseSession
impl Sync for ParseSession
impl Unpin for ParseSession
impl UnwindSafe for ParseSession
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