pub struct ApiToken(/* private fields */);
Expand description
The API Token for the user
ForgeJo
: https://{hostname}/user/settings/applications
Github
: https://github.com/settings/tokens
Implementations§
Trait Implementations§
Source§impl ExposeSecret<str> for ApiToken
The API Token is in effect a password, so it must be explicitly exposed to access its value
impl ExposeSecret<str> for ApiToken
The API Token is in effect a password, so it must be explicitly exposed to access its value
Source§fn expose_secret(&self) -> &str
fn expose_secret(&self) -> &str
Expose secret: this is the only method providing access to a secret.
Auto Trait Implementations§
impl Freeze for ApiToken
impl RefUnwindSafe for ApiToken
impl Send for ApiToken
impl Sync for ApiToken
impl Unpin for ApiToken
impl UnwindSafe for ApiToken
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