[−][src]Struct graph_http::GraphResponse
Implementations
impl<T> GraphResponse<T>[src]
pub fn new(
url: GraphUrl,
body: T,
status: u16,
headers: HeaderMap
) -> GraphResponse<T>[src]
url: GraphUrl,
body: T,
status: u16,
headers: HeaderMap
) -> GraphResponse<T>
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[src]
pub fn async_job_status(&mut self) -> Option<GraphResult<Value>>[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
pub fn async_try_from<'async_trait>(
response: Response
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>> where
Self: 'async_trait, [src]
response: Response
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>> where
Self: 'async_trait,
impl<T> AsyncTryFrom<Response, GraphResponse<T>> for GraphResponse<T> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
type Error = GraphFailure
pub fn async_try_from<'async_trait>(
response: Response
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>> where
Self: 'async_trait, [src]
response: Response
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>> where
Self: 'async_trait,
impl AsyncTryFrom<Result<Response, GraphFailure>, GraphResponse<Content>> for GraphResponse<Content>[src]
type Error = GraphFailure
pub fn async_try_from<'async_trait>(
result: GraphResult<Response>
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>> where
Self: 'async_trait, [src]
result: GraphResult<Response>
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>> where
Self: 'async_trait,
impl<T> AsyncTryFrom<Result<Response, GraphFailure>, GraphResponse<T>> for GraphResponse<T> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
type Error = GraphFailure
pub fn async_try_from<'async_trait>(
result: GraphResult<Response>
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>> where
Self: 'async_trait, [src]
result: GraphResult<Response>
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>> where
Self: 'async_trait,
impl<T: Debug> Debug for GraphResponse<T>[src]
impl<T> TryFrom<Response> for GraphResponse<T> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
type Error = GraphFailure
The type returned in the event of a conversion error.
pub fn try_from(response: Response) -> GraphResult<GraphResponse<T>>[src]
impl TryFrom<Response> for GraphResponse<Content>[src]
type Error = GraphFailure
The type returned in the event of a conversion error.
pub fn try_from(response: Response) -> Result<Self, Self::Error>[src]
impl<T> TryFrom<Result<Response, GraphFailure>> for GraphResponse<T> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
type Error = GraphFailure
The type returned in the event of a conversion error.
pub fn try_from(result: GraphResult<Response>) -> Result<Self, Self::Error>[src]
impl TryFrom<Result<Response, GraphFailure>> for GraphResponse<Content>[src]
type Error = GraphFailure
The type returned in the event of a conversion error.
pub fn try_from(result: GraphResult<Response>) -> Result<Self, Self::Error>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for GraphResponse<T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Send for GraphResponse<T> where
T: Send, [src]
T: Send,
impl<T> Sync for GraphResponse<T> where
T: Sync, [src]
T: Sync,
impl<T> Unpin for GraphResponse<T> where
T: Unpin, [src]
T: Unpin,
impl<T> UnwindSafe for GraphResponse<T> where
T: UnwindSafe, [src]
T: UnwindSafe,
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[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.
pub 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>,