pub struct GitConfig {
pub git_binary: String,
pub upstream_auth_header: Option<String>,
pub fetch_ttl: Duration,
}Fields§
§git_binary: String§upstream_auth_header: Option<String>Optional header for upstream auth, e.g. Authorization: Bearer <token>.
Injected via env (not argv) so it never shows up in ps. Never logged.
fetch_ttl: DurationSkip the upstream fetch if the mirror was refreshed within this window.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitConfig
impl RefUnwindSafe for GitConfig
impl Send for GitConfig
impl Sync for GitConfig
impl Unpin for GitConfig
impl UnsafeUnpin for GitConfig
impl UnwindSafe for GitConfig
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