pub struct BearerToken { /* private fields */ }Expand description
An OAuth2 access token issued by a Nextcloud instance.
The token is kept behind SecretString so no Debug or log line can
reveal it; request the plaintext through BearerToken::expose.
Implementations§
Trait Implementations§
Source§impl Clone for BearerToken
impl Clone for BearerToken
Auto Trait Implementations§
impl Freeze for BearerToken
impl RefUnwindSafe for BearerToken
impl Send for BearerToken
impl Sync for BearerToken
impl Unpin for BearerToken
impl UnsafeUnpin for BearerToken
impl UnwindSafe for BearerToken
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