pub struct StoredServerAuth {
pub server_url: String,
pub authorization_server: Option<String>,
pub token_endpoint: Option<String>,
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub redirect_uri: Option<String>,
pub access_token: Option<String>,
pub refresh_token: Option<String>,
pub token_type: Option<String>,
pub scope: Option<String>,
pub expires_at: Option<u64>,
}Fields§
§server_url: String§token_endpoint: Option<String>§client_id: Option<String>§client_secret: Option<String>§redirect_uri: Option<String>§access_token: Option<String>§refresh_token: Option<String>§token_type: Option<String>§scope: Option<String>§expires_at: Option<u64>Implementations§
Source§impl StoredServerAuth
impl StoredServerAuth
pub fn is_expired_or_near_expiry(&self, now_secs: u64, margin_secs: u64) -> bool
Trait Implementations§
Source§impl Clone for StoredServerAuth
impl Clone for StoredServerAuth
Source§impl Debug for StoredServerAuth
impl Debug for StoredServerAuth
Source§impl Default for StoredServerAuth
impl Default for StoredServerAuth
Source§impl<'de> Deserialize<'de> for StoredServerAuth
impl<'de> Deserialize<'de> for StoredServerAuth
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
impl Eq for StoredServerAuth
Source§impl PartialEq for StoredServerAuth
impl PartialEq for StoredServerAuth
Source§impl Serialize for StoredServerAuth
impl Serialize for StoredServerAuth
impl StructuralPartialEq for StoredServerAuth
Auto Trait Implementations§
impl Forget for StoredServerAuth
impl Freeze for StoredServerAuth
impl Move for StoredServerAuth
impl RefUnwindSafe for StoredServerAuth
impl Send for StoredServerAuthwhere
RawVecInner: Send,
impl Sync for StoredServerAuthwhere
RawVecInner: Sync,
impl Unpin for StoredServerAuth
impl UnsafeUnpin for StoredServerAuth
impl UnwindSafe for StoredServerAuthwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.