pub trait ToUserTokens {
// Required methods
fn to_user_id(&self) -> Option<String>;
fn to_user_token(&self) -> Option<String>;
}
Expand description
This trait is used to provide access to all the tokens needed to track the user session.
Required Methods§
Sourcefn to_user_id(&self) -> Option<String>
fn to_user_id(&self) -> Option<String>
Return the user id for the session, if one has been already been set.
Returns None otherwise.
Sourcefn to_user_token(&self) -> Option<String>
fn to_user_token(&self) -> Option<String>
Return the user token for the session, if one has been already been set.
Returns None otherwise.