pub enum SessionAction {
Signup,
Login,
Upgrade,
Create,
}Expand description
What created a session.
Upstream stores this as a plain object with an action and, usually, an authProvider
(RestWrite.js:849). Two of the four shapes omit authProvider entirely:
{action: 'upgrade'} (SessionsRouter.js:73) and {action: 'create'}
(RestWrite.js:1274). Modelling the provider as Option<String> rather than defaulting it to
an empty string is what keeps those two writing the document parse-server writes: an empty
string is a present key, and a present key is a difference a mixed fleet can read.
Variants§
Signup
Login
Upgrade
POST /upgradeToRevocableSession. Out of scope for the route, modelled here so a row
written by parse-server round-trips rather than failing to parse.
Create
A client creating a _Session directly. Same note as Upgrade.
Implementations§
Trait Implementations§
Source§impl Clone for SessionAction
impl Clone for SessionAction
Source§fn clone(&self) -> SessionAction
fn clone(&self) -> SessionAction
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 moreSource§impl Debug for SessionAction
impl Debug for SessionAction
impl Eq for SessionAction
Source§impl PartialEq for SessionAction
impl PartialEq for SessionAction
impl StructuralPartialEq for SessionAction
Auto Trait Implementations§
impl Freeze for SessionAction
impl RefUnwindSafe for SessionAction
impl Send for SessionAction
impl Sync for SessionAction
impl Unpin for SessionAction
impl UnsafeUnpin for SessionAction
impl UnwindSafe for SessionAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.