pub struct GitwayConfigBuilder { /* private fields */ }Expand description
Builder for GitwayConfig.
Obtained via GitwayConfig::builder.
Implementations§
Source§impl GitwayConfigBuilder
impl GitwayConfigBuilder
Sourcepub fn username(self, username: impl Into<String>) -> Self
pub fn username(self, username: impl Into<String>) -> Self
Override the remote username (default: "git", FR-13).
Sourcepub fn identity_file(self, path: impl Into<PathBuf>) -> Self
pub fn identity_file(self, path: impl Into<PathBuf>) -> Self
Set an explicit identity file path (FR-9 — highest priority).
Sourcepub fn cert_file(self, path: impl Into<PathBuf>) -> Self
pub fn cert_file(self, path: impl Into<PathBuf>) -> Self
Set an OpenSSH certificate path (FR-12).
Sourcepub fn skip_host_check(self, skip: bool) -> Self
pub fn skip_host_check(self, skip: bool) -> Self
Disable host-key verification. Use only for emergencies (FR-8).
Sourcepub fn inactivity_timeout(self, timeout: Duration) -> Self
pub fn inactivity_timeout(self, timeout: Duration) -> Self
Override the session inactivity timeout (FR-5).
Sourcepub fn custom_known_hosts(self, path: impl Into<PathBuf>) -> Self
pub fn custom_known_hosts(self, path: impl Into<PathBuf>) -> Self
Path to a custom known_hosts-style file for self-hosted instances
(FR-7).
Sourcepub fn fallback(self, fallback: Option<(String, u16)>) -> Self
pub fn fallback(self, fallback: Option<(String, u16)>) -> Self
Override the fallback host/port. Pass None to disable fallback.
Sourcepub fn build(self) -> GitwayConfig
pub fn build(self) -> GitwayConfig
Finalise and return the GitwayConfig.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitwayConfigBuilder
impl RefUnwindSafe for GitwayConfigBuilder
impl Send for GitwayConfigBuilder
impl Sync for GitwayConfigBuilder
impl Unpin for GitwayConfigBuilder
impl UnsafeUnpin for GitwayConfigBuilder
impl UnwindSafe for GitwayConfigBuilder
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