pub enum Credentials {
Pat(SecretString),
}Expand description
Authentication credentials for Azure DevOps.
Currently supports Personal Access Token (PAT) authentication. Additional mechanisms (Basic, Bearer, etc.) can be added as needed.
Variants§
Pat(SecretString)
Authenticate using a Personal Access Token.
Implementations§
Source§impl Credentials
impl Credentials
Sourcepub fn from_pat(token: impl Into<String>) -> Self
pub fn from_pat(token: impl Into<String>) -> Self
Create credentials from a PAT string.
The token is stored in a SecretString to prevent accidental
exposure in logs or debug output.
Trait Implementations§
Source§impl Clone for Credentials
impl Clone for Credentials
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnsafeUnpin for Credentials
impl UnwindSafe for Credentials
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