use std::fmt;
#[derive(serde::Deserialize)]
pub struct GitCredentialMaterial {
pub username: String,
pub password: String,
pub expires_at: Option<String>,
pub token_type: String,
pub host: Option<String>,
pub path: Option<String>,
}
impl fmt::Debug for GitCredentialMaterial {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("GitCredentialMaterial")
.field("username", &self.username)
.field("password", &"[REDACTED]")
.field("expires_at", &self.expires_at)
.field("token_type", &self.token_type)
.field("host", &self.host)
.field("path", &self.path)
.finish()
}
}