[−][src]Struct graph_rs_sdk::prelude::GraphResponse
Implementations
impl<T> GraphResponse<T>
[src]
pub fn new(
url: GraphUrl,
body: T,
status: u16,
headers: HeaderMap<HeaderValue>
) -> GraphResponse<T>
[src]
url: GraphUrl,
body: T,
status: u16,
headers: HeaderMap<HeaderValue>
) -> 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<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
pub fn async_try_from<'async_trait>(
response: Response
) -> Pin<Box<dyn Future<Output = Result<GraphResponse<Content>, <GraphResponse<Content> as AsyncTryFrom<Response, GraphResponse<Content>>>::Error>> + 'async_trait + Send, Global>> where
GraphResponse<Content>: 'async_trait,
[src]
response: Response
) -> Pin<Box<dyn Future<Output = Result<GraphResponse<Content>, <GraphResponse<Content> as AsyncTryFrom<Response, GraphResponse<Content>>>::Error>> + 'async_trait + Send, Global>> where
GraphResponse<Content>: 'async_trait,
impl<T> AsyncTryFrom<Response, GraphResponse<T>> for GraphResponse<T> where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
type Error = GraphFailure
pub fn async_try_from<'async_trait>(
response: Response
) -> Pin<Box<dyn Future<Output = Result<GraphResponse<T>, <GraphResponse<T> as AsyncTryFrom<Response, GraphResponse<T>>>::Error>> + 'async_trait + Send, Global>> where
GraphResponse<T>: 'async_trait,
[src]
response: Response
) -> Pin<Box<dyn Future<Output = Result<GraphResponse<T>, <GraphResponse<T> as AsyncTryFrom<Response, GraphResponse<T>>>::Error>> + 'async_trait + Send, Global>> where
GraphResponse<T>: 'async_trait,
impl AsyncTryFrom<Result<Response, GraphFailure>, GraphResponse<Content>> for GraphResponse<Content>
[src]
type Error = GraphFailure
pub fn async_try_from<'async_trait>(
result: Result<Response, GraphFailure>
) -> Pin<Box<dyn Future<Output = Result<GraphResponse<Content>, <GraphResponse<Content> as AsyncTryFrom<Result<Response, GraphFailure>, GraphResponse<Content>>>::Error>> + 'async_trait + Send, Global>> where
GraphResponse<Content>: 'async_trait,
[src]
result: Result<Response, GraphFailure>
) -> Pin<Box<dyn Future<Output = Result<GraphResponse<Content>, <GraphResponse<Content> as AsyncTryFrom<Result<Response, GraphFailure>, GraphResponse<Content>>>::Error>> + 'async_trait + Send, Global>> where
GraphResponse<Content>: 'async_trait,
impl<T> AsyncTryFrom<Result<Response, GraphFailure>, GraphResponse<T>> for GraphResponse<T> where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
type Error = GraphFailure
pub fn async_try_from<'async_trait>(
result: Result<Response, GraphFailure>
) -> Pin<Box<dyn Future<Output = Result<GraphResponse<T>, <GraphResponse<T> as AsyncTryFrom<Result<Response, GraphFailure>, GraphResponse<T>>>::Error>> + 'async_trait + Send, Global>> where
GraphResponse<T>: 'async_trait,
[src]
result: Result<Response, GraphFailure>
) -> Pin<Box<dyn Future<Output = Result<GraphResponse<T>, <GraphResponse<T> as AsyncTryFrom<Result<Response, GraphFailure>, GraphResponse<T>>>::Error>> + 'async_trait + Send, Global>> where
GraphResponse<T>: 'async_trait,
impl<T> Debug for GraphResponse<T> where
T: Debug,
[src]
T: Debug,
impl<T> TryFrom<Response> for GraphResponse<T> where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
type Error = GraphFailure
The type returned in the event of a conversion error.
pub fn try_from(response: Response) -> Result<GraphResponse<T>, GraphFailure>
[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<GraphResponse<Content>, <GraphResponse<Content> as TryFrom<Response>>::Error>
[src]
response: Response
) -> Result<GraphResponse<Content>, <GraphResponse<Content> as TryFrom<Response>>::Error>
impl<T> TryFrom<Result<Response, GraphFailure>> for GraphResponse<T> where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
type Error = GraphFailure
The type returned in the event of a conversion error.
pub fn try_from(
result: Result<Response, GraphFailure>
) -> Result<GraphResponse<T>, <GraphResponse<T> as TryFrom<Result<Response, GraphFailure>>>::Error>
[src]
result: Result<Response, GraphFailure>
) -> Result<GraphResponse<T>, <GraphResponse<T> as TryFrom<Result<Response, GraphFailure>>>::Error>
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: Result<Response, GraphFailure>
) -> Result<GraphResponse<Content>, <GraphResponse<Content> as TryFrom<Result<Response, GraphFailure>>>::Error>
[src]
result: Result<Response, GraphFailure>
) -> Result<GraphResponse<Content>, <GraphResponse<Content> as TryFrom<Result<Response, GraphFailure>>>::Error>
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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,