#[non_exhaustive]pub struct GitConfig {
pub http: Option<HttpConfig>,
/* private fields */
}Expand description
GitConfig is a configuration for git operations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.http: Option<HttpConfig>Configuration for HTTP related git operations.
Implementations§
Source§impl GitConfig
impl GitConfig
pub fn new() -> Self
Sourcepub fn set_http<T>(self, v: T) -> Selfwhere
T: Into<HttpConfig>,
pub fn set_http<T>(self, v: T) -> Selfwhere
T: Into<HttpConfig>,
Sourcepub fn set_or_clear_http<T>(self, v: Option<T>) -> Selfwhere
T: Into<HttpConfig>,
pub fn set_or_clear_http<T>(self, v: Option<T>) -> Selfwhere
T: Into<HttpConfig>,
Trait Implementations§
impl StructuralPartialEq for GitConfig
Auto Trait Implementations§
impl Freeze for GitConfig
impl RefUnwindSafe for GitConfig
impl Send for GitConfig
impl Sync for GitConfig
impl Unpin 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