Trait ToUserTokens

Source
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§

Source

fn to_user_id(&self) -> Option<String>

Return the user id for the session, if one has been already been set.

Returns None otherwise.

Source

fn to_user_token(&self) -> Option<String>

Return the user token for the session, if one has been already been set.

Returns None otherwise.

Implementors§