pub struct Client { /* private fields */ }
Expand description

Client is the entry point into all the functionality in this package. It contains authentication credentials, and a service endpoint, which are required for all HTTP operations.

Implementations

Make a request to a Taskcluster deployment. While the per-service methods are generally more convenient, this method can be used to call a path on the deployment directly.

The request URI is <root_url>/<path_prefix>/<path>. The path parameter must not start with /.

This will automatically retry on server-side errors and return an error for client errors. Success and redirection responses are treated as OK.

Get the root URL with which this client was configured

Make a URL for the given path, constructed as for request. The path should not begin with a /.

Make a signed URL for the given path, constructed as for request. The path should not begin with a /. The URL will be valid for the given duration, and carries the client’s scopes (including any authorized_scopes setting).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more