Struct yup_oauth2::NullStorage
[−]
[src]
pub struct NullStorage;
A storage that remembers nothing.
Trait Implementations
impl Default for NullStorage
[src]
fn default() -> NullStorage
Returns the "default value" for a type. Read more
impl TokenStorage for NullStorage
[src]
type Error = NullError
fn set(&mut self,
_: u64,
_: &Vec<&str>,
_: Option<Token>)
-> Result<(), NullError>
_: u64,
_: &Vec<&str>,
_: Option<Token>)
-> Result<(), NullError>
If token
is None, it is invalid or revoked and should be removed from storage. Otherwise, it should be saved. Read more
fn get(&self, _: u64, _: &Vec<&str>) -> Result<Option<Token>, NullError>
A None
result indicates that there is no token for the given scope_hash.