Struct git_next_core::ApiToken
source · 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<String> for ApiToken
impl ExposeSecret<String> 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) -> &String
fn expose_secret(&self) -> &String
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)