[][src]Struct github_v3::Response

pub struct Response { /* fields omitted */ }

Response from the API

Methods

impl Response[src]

pub async fn obj<T: DeserializeOwned>(self) -> Result<T, GHError>[src]

Fetch a single JSON object from the API

pub fn array<T: DeserializeOwned + Unpin + 'static>(
    self
) -> impl Stream<Item = Result<T, GHError>>
[src]

Stream an array of objects from the API

pub fn headers(&self) -> &HeaderMap[src]

Response headers

pub fn status(&self) -> StatusCode[src]

Response status

Auto Trait Implementations

impl !RefUnwindSafe for Response

impl Send for Response

impl Sync for Response

impl Unpin for Response

impl !UnwindSafe for Response

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.