pub struct GitFoxClientBuilder { /* private fields */ }Implementations§
Source§impl GitFoxClientBuilder
impl GitFoxClientBuilder
pub fn token(self, token: Option<String>) -> Self
pub fn timeout_secs(self, secs: u64) -> Self
Sourcepub fn retries(self, retries: u32) -> Self
pub fn retries(self, retries: u32) -> Self
How many times to try again after a transient failure. Zero disables retrying entirely.
Sourcepub fn insecure(self, insecure: bool) -> Self
pub fn insecure(self, insecure: bool) -> Self
Skip TLS verification. Self-hosted instances with private CAs need it; callers are expected to warn the user loudly when they turn it on.
pub fn build(self) -> Result<GitFoxClient>
Auto Trait Implementations§
impl Forget for GitFoxClientBuilder
impl Freeze for GitFoxClientBuilder
impl RefUnwindSafe for GitFoxClientBuilder
impl Send for GitFoxClientBuilder
impl Sync for GitFoxClientBuilder
impl Unpin for GitFoxClientBuilder
impl UnsafeUnpin for GitFoxClientBuilder
impl UnwindSafe for GitFoxClientBuilder
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