Struct taskcluster::ClientBuilder
source · pub struct ClientBuilder { /* private fields */ }
Expand description
ClientBuilder implements the builder pattern for building a Client, allowing optional configuration of features such as authorized scopes and retry.
Implementations§
source§impl ClientBuilder
impl ClientBuilder
sourcepub fn new<S: Into<String>>(root_url: S) -> Self
pub fn new<S: Into<String>>(root_url: S) -> Self
Create a new ClientBuilder. The Taskcluster root URL is required and so must always be specified.
sourcepub fn credentials(self, credentials: Credentials) -> Self
pub fn credentials(self, credentials: Credentials) -> Self
Add credentials to the client
sourcepub fn timeout(self, timeout: Duration) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Set the timeout for each HTTP request made by the client. The default is 30 seconds.
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.
Trait Implementations§
source§impl Clone for ClientBuilder
impl Clone for ClientBuilder
source§fn clone(&self) -> ClientBuilder
fn clone(&self) -> ClientBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClientBuilder
impl Debug for ClientBuilder
source§impl Default for ClientBuilder
impl Default for ClientBuilder
source§fn default() -> ClientBuilder
fn default() -> ClientBuilder
Returns the “default value” for a type. Read more