Include the RFC in the docs for our `Credentials` variants (#16162)

This commit is contained in:
Zanie Blue 2025-10-08 11:26:30 -05:00 committed by GitHub
parent aadf103855
commit 9cec60bcc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -20,12 +20,14 @@ use uv_static::EnvVars;
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Credentials {
/// RFC 7617 HTTP Basic Authentication
Basic {
/// The username to use for authentication.
username: Username,
/// The password to use for authentication.
password: Option<Password>,
},
/// RFC 6750 Bearer Token Authentication
Bearer {
/// The token to use for authentication.
token: Vec<u8>,