[−][src]Struct github_v3::Builder
See Client::get()
Make a new request by constructing the request URL bit by bit
Methods
impl Builder
[src]
pub fn path(self, url_part: &'static str) -> Self
[src]
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.
pub fn arg(self, arg: &str) -> Self
[src]
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.
pub fn query(self, query_string: &str) -> Self
[src]
Add a raw unescaped query string. The string must not start with ?
.get().path("search/users").query("q=").arg(somestring)
pub async fn send(self) -> Result<Response, GHError>
[src]
Make the request
Auto Trait Implementations
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,