pub enum Auth {
None,
Basic {
username: String,
password: String,
},
Bearer(String),
}Expand description
Authentication to attach to API requests.
Populated by the caller (typically from a credential helper).
Resolving credentials (git-credential, keychain, etc.) is
deliberately not this crate’s job; see git-lfs-creds.
Variants§
None
No Authorization header.
Basic
HTTP Basic auth, sent as Authorization: Basic <base64(user:pass)>.
Bearer(String)
Bearer token, sent as Authorization: Bearer <token>.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Auth
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnsafeUnpin for Auth
impl UnwindSafe for Auth
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