pub struct GithubToken(/* private fields */);Expand description
Opaque GitHub token handle.
The raw token string is not publicly accessible. The only way to
extract it is GithubToken::for_url, which gates on
is_github_url — making it structurally impossible to leak the
token to non-GitHub domains.
Implementations§
Auto Trait Implementations§
impl Freeze for GithubToken
impl RefUnwindSafe for GithubToken
impl Send for GithubToken
impl Sync for GithubToken
impl Unpin for GithubToken
impl UnsafeUnpin for GithubToken
impl UnwindSafe for GithubToken
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