Type Definition graph_http::IntoResponseAsync
source · pub type IntoResponseAsync<'a, T> = IntoResponse<'a, T, AsyncHttpClient>;
Implementations§
source§impl<'a, T> IntoResponseAsync<'a, T>
impl<'a, T> IntoResponseAsync<'a, T>
pub async fn text(self) -> GraphResult<GraphResponse<String>>
pub async fn bytes(self) -> GraphResult<GraphResponse<Bytes>>
pub fn paging(self) -> IntoResponseAsync<'a, NextLink>
source§impl<'a, T> IntoResponseAsync<'a, T>where
for<'de> T: Deserialize<'de>,
impl<'a, T> IntoResponseAsync<'a, T>where for<'de> T: Deserialize<'de>,
pub async fn build(self) -> DispatchAsync<T>
pub async fn send(self) -> GraphResult<GraphResponse<T>>
pub async fn json<U>(self) -> GraphResult<GraphResponse<U>>where for<'de> U: Deserialize<'de>,
pub fn stream( self ) -> GraphResult<impl Stream<Item = GraphResult<GraphResponse<T>>> + 'a>where for<'de> T: Deserialize<'de> + ODataNextLink + 'a + Clone,
source§impl<'a> IntoResponseAsync<'a, NextLink>
impl<'a> IntoResponseAsync<'a, NextLink>
sourcepub async fn json<V>(self) -> GraphResult<GraphResponse<Vec<V>>>where
for<'de> V: Deserialize<'de>,
pub async fn json<V>(self) -> GraphResult<GraphResponse<Vec<V>>>where for<'de> V: Deserialize<'de>,
Gets all next link calls in one response.
This method will get the next link url of the original response and then continue calling next link requests until there are no more left returning all response bodies in a single Vec.
This method make block for long periods of time if there are many next link values.