pub struct OneTimeUseToken { /* private fields */ }Expand description
Token without expiration time (always considered expired).
Implementations§
Trait Implementations§
Source§impl Clone for OneTimeUseToken
impl Clone for OneTimeUseToken
Source§fn clone(&self) -> OneTimeUseToken
fn clone(&self) -> OneTimeUseToken
Returns a duplicate of the value. Read more
1.0.0 · 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 OneTimeUseToken
impl Debug for OneTimeUseToken
Source§impl<'de> Deserialize<'de> for OneTimeUseToken
impl<'de> Deserialize<'de> for OneTimeUseToken
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OneTimeUseToken
impl PartialEq for OneTimeUseToken
Source§impl Serialize for OneTimeUseToken
impl Serialize for OneTimeUseToken
Source§impl Token for OneTimeUseToken
impl Token for OneTimeUseToken
fn has_expired(&self, _current_time_millis: i64) -> bool
fn is_active(&self) -> bool
fn scopes(&self) -> &[String]
fn client_id(&self) -> Option<String>
fn username(&self) -> Option<String>
fn raw_token_context(&self) -> &str
fn properties(&self) -> &Object
impl Eq for OneTimeUseToken
impl StructuralPartialEq for OneTimeUseToken
Auto Trait Implementations§
impl Freeze for OneTimeUseToken
impl RefUnwindSafe for OneTimeUseToken
impl Send for OneTimeUseToken
impl Sync for OneTimeUseToken
impl Unpin for OneTimeUseToken
impl UnwindSafe for OneTimeUseToken
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