Struct taskcluster::ClientBuilder [−][src]
ClientBuilder implements the builder pattern for building a Client, allowing optional configuration of features such as authorized scopes and retry.
Implementations
impl ClientBuilder
[src]
pub fn new<S: Into<String>>(root_url: S) -> Self
[src]
Create a new ClientBuilder. The Taskcluster root URL is required and so must always be specified.
pub fn credentials(self, credentials: Credentials) -> Self
[src]
Add credentials to the client
pub fn retry(self, retry: Retry) -> Self
[src]
Set the retry configuration for the client
pub fn timeout(self, timeout: Duration) -> Self
[src]
Set the timeout for each HTTP request made by the client. The default is 30 seconds.
pub fn authorized_scopes(
self,
authorized_scopes: impl IntoIterator<Item = impl AsRef<str>>
) -> Self
[src]
self,
authorized_scopes: impl IntoIterator<Item = impl AsRef<str>>
) -> Self
Set the authorized scopes for this client. These will be passed along with request, and included in signed URLs, and will act as a limit on the scopes available for the operation beyond those afforded by the credentials themselves.
pub fn build(self) -> Result<Client>
[src]
Build the resulting client, consuming the builder
Trait Implementations
impl Clone for ClientBuilder
[src]
fn clone(&self) -> ClientBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ClientBuilder
[src]
impl Default for ClientBuilder
[src]
fn default() -> ClientBuilder
[src]
impl From<&'_ str> for ClientBuilder
[src]
impl From<String> for ClientBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,