Struct github_v3::Builder

source ·
pub struct Builder { /* private fields */ }
Expand description

See Client::get()

Make a new request by constructing the request URL bit by bit

Implementations§

Add a constant path to the request, e.g. .path("users")

Inner slashes are OK, but the string must not start or end with a slash.

Panics if query string has been added.

It’s appended raw, so must be URL-safe.

Add a user-supplied argument to the request path, e.g. .path("users").arg(username), or after a call to query(), starts adding fragments to the query string with no delimiters.

The arg is URL-escaped, so it’s safe to use any user-supplied data.

Add a raw unescaped query string. The string must not start with ?

.get().path("search/users").query("q=").arg("somestring");

Make the request

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