pub struct NewSession<'a> {
pub user_object_id: &'a str,
pub created_with: Option<CreatedWith>,
pub installation_id: Option<&'a str>,
}Expand description
What a caller must supply to mint a session.
Fields§
§user_object_id: &'a str§created_with: Option<CreatedWith>None writes no createdWith column at all, which is what a password-change replacement
session gets. setCreatedWith computes an action of login only when an auth provider is
in storage and signup only on a create, and returns early with neither set otherwise
(RestWrite.js:860-870), so the column is simply absent. Modelled as an Option rather
than a third SessionAction, because the difference is whether the key exists.
installation_id: Option<&'a str>X-Parse-Installation-Id, when the client sent one. Its presence is what enables
duplicate destruction; see create_session.
Trait Implementations§
Source§impl<'a> Clone for NewSession<'a>
impl<'a> Clone for NewSession<'a>
Source§fn clone(&self) -> NewSession<'a>
fn clone(&self) -> NewSession<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for NewSession<'a>
impl<'a> RefUnwindSafe for NewSession<'a>
impl<'a> Send for NewSession<'a>
impl<'a> Sync for NewSession<'a>
impl<'a> Unpin for NewSession<'a>
impl<'a> UnsafeUnpin for NewSession<'a>
impl<'a> UnwindSafe for NewSession<'a>
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