pub struct UserToken {
pub access_token: String,
pub expires_in: Option<u64>,
pub refresh_token: Option<String>,
pub refresh_token_expires_in: Option<u64>,
pub token_type: Option<String>,
}Expand description
A user-to-server access token (ghu_…) and its refresh material. Debug
never prints a token.
Fields§
§access_token: StringThe ghu_… token.
expires_in: Option<u64>Seconds until access_token expires, when GitHub says.
refresh_token: Option<String>The refresh token (ghr_…), when this app issues expiring tokens.
refresh_token_expires_in: Option<u64>Seconds until refresh_token expires, when present.
token_type: Option<String>The token type GitHub reported (bearer).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserToken
impl RefUnwindSafe for UserToken
impl Send for UserToken
impl Sync for UserToken
impl Unpin for UserToken
impl UnsafeUnpin for UserToken
impl UnwindSafe for UserToken
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