[][src]Struct graph_rs_sdk::prelude::GraphResponse

pub struct GraphResponse<T> { /* fields omitted */ }

Implementations

impl<T> GraphResponse<T>[src]

pub fn new(
    url: GraphUrl,
    body: T,
    status: u16,
    headers: HeaderMap<HeaderValue>
) -> GraphResponse<T>
[src]

pub fn url(&self) -> &GraphUrl[src]

pub fn body(&self) -> &T[src]

pub fn into_body(self) -> T[src]

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

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

pub fn async_job_status(&mut self) -> Option<Result<Value, GraphFailure>>[src]

Trait Implementations

impl<T> AsMut<T> for GraphResponse<T>[src]

impl<T> AsRef<T> for GraphResponse<T>[src]

impl AsyncTryFrom<Response, GraphResponse<Content>> for GraphResponse<Content>[src]

type Error = GraphFailure

impl<T> AsyncTryFrom<Response, GraphResponse<T>> for GraphResponse<T> where
    T: for<'de> Deserialize<'de>, 
[src]

type Error = GraphFailure

impl AsyncTryFrom<Result<Response, GraphFailure>, GraphResponse<Content>> for GraphResponse<Content>[src]

type Error = GraphFailure

impl<T> AsyncTryFrom<Result<Response, GraphFailure>, GraphResponse<T>> for GraphResponse<T> where
    T: for<'de> Deserialize<'de>, 
[src]

type Error = GraphFailure

impl<T> Debug for GraphResponse<T> where
    T: Debug
[src]

impl<T> TryFrom<Response> for GraphResponse<T> where
    T: for<'de> Deserialize<'de>, 
[src]

type Error = GraphFailure

The type returned in the event of a conversion error.

impl TryFrom<Response> for GraphResponse<Content>[src]

type Error = GraphFailure

The type returned in the event of a conversion error.

impl<T> TryFrom<Result<Response, GraphFailure>> for GraphResponse<T> where
    T: for<'de> Deserialize<'de>, 
[src]

type Error = GraphFailure

The type returned in the event of a conversion error.

impl TryFrom<Result<Response, GraphFailure>> for GraphResponse<Content>[src]

type Error = GraphFailure

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<T> RefUnwindSafe for GraphResponse<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for GraphResponse<T> where
    T: Send
[src]

impl<T> Sync for GraphResponse<T> where
    T: Sync
[src]

impl<T> Unpin for GraphResponse<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for GraphResponse<T> where
    T: UnwindSafe
[src]

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.