pub struct AnvilConfigBuilder { /* private fields */ }Expand description
Builder for AnvilConfig.
Obtained via AnvilConfig::builder.
Implementations§
Source§impl AnvilConfigBuilder
impl AnvilConfigBuilder
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) -> AnvilConfig
pub fn build(self) -> AnvilConfig
Finalise and return the AnvilConfig.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnvilConfigBuilder
impl RefUnwindSafe for AnvilConfigBuilder
impl Send for AnvilConfigBuilder
impl Sync for AnvilConfigBuilder
impl Unpin for AnvilConfigBuilder
impl UnsafeUnpin for AnvilConfigBuilder
impl UnwindSafe for AnvilConfigBuilder
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