pub struct CredentialRecord { /* private fields */ }Implementations§
Source§impl CredentialRecord
impl CredentialRecord
pub fn new( server_url: String, user_id: String, token: SecretString, token_expires: OffsetDateTime, ) -> Self
pub fn server_url(&self) -> &str
pub fn user_id(&self) -> &str
pub fn token(&self) -> &SecretString
pub const fn token_expires(&self) -> OffsetDateTime
pub fn matches(&self, other: &Self) -> bool
Trait Implementations§
Source§impl Clone for CredentialRecord
impl Clone for CredentialRecord
Auto Trait Implementations§
impl Freeze for CredentialRecord
impl RefUnwindSafe for CredentialRecord
impl Send for CredentialRecord
impl Sync for CredentialRecord
impl Unpin for CredentialRecord
impl UnsafeUnpin for CredentialRecord
impl UnwindSafe for CredentialRecord
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