pub struct JenkinsAsyncBuilder<T = DefaultAsyncTransport> { /* private fields */ }
Expand description
Builder for JenkinsAsync
.
Do not construct directly; call JenkinsAsync::builder(..)
instead.
Implementationsยง
Sourceยงimpl JenkinsAsyncBuilder<DefaultAsyncTransport>
impl JenkinsAsyncBuilder<DefaultAsyncTransport>
Sourcepub fn no_system_proxy(self) -> Self
pub fn no_system_proxy(self) -> Self
Ignore system proxy environment variables.
Sourcepub fn danger_accept_invalid_certs(self, yes: bool) -> Self
pub fn danger_accept_invalid_certs(self, yes: bool) -> Self
Accept invalid TLS certificates (dangerous).
Sourceยงimpl<T: AsyncTransport> JenkinsAsyncBuilder<T>
impl<T: AsyncTransport> JenkinsAsyncBuilder<T>
pub fn auth_basic( self, user: impl Into<String>, token: impl Into<String>, ) -> Self
Sourcepub fn transport<NT: AsyncTransport>(self, t: NT) -> JenkinsAsyncBuilder<NT>
pub fn transport<NT: AsyncTransport>(self, t: NT) -> JenkinsAsyncBuilder<NT>
Swap out the underlying transport.
pub fn with_retry( self, max: usize, backoff: Duration, ) -> JenkinsAsyncBuilder<Retry<T>>
pub fn with_crumb(self, ttl: Duration) -> JenkinsAsyncBuilder<Crumb<T>>
Sourcepub fn build(self) -> JenkinsAsync<T>
pub fn build(self) -> JenkinsAsync<T>
Finalize the builder and create the client.
Auto Trait Implementationsยง
impl<T> Freeze for JenkinsAsyncBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for JenkinsAsyncBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for JenkinsAsyncBuilder<T>where
T: Send,
impl<T> Sync for JenkinsAsyncBuilder<T>where
T: Sync,
impl<T> Unpin for JenkinsAsyncBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for JenkinsAsyncBuilder<T>where
T: UnwindSafe,
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