Type Definition graph_http::IntoResponseAsync

source ·
pub type IntoResponseAsync<'a, T> = IntoResponse<'a, T, AsyncHttpClient>;

Implementations§

source§

impl<'a, T> IntoResponseAsync<'a, T>

source§

impl<'a, T> IntoResponseAsync<'a, T>where for<'de> T: Deserialize<'de>,

source

pub async fn build(self) -> DispatchAsync<T>

source

pub async fn send(self) -> GraphResult<GraphResponse<T>>

source

pub async fn json<U>(self) -> GraphResult<GraphResponse<U>>where for<'de> U: Deserialize<'de>,

source

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>

source

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.

source§

impl<'a> IntoResponseAsync<'a, NoContent>

source§

impl<'a> IntoResponseAsync<'a, UploadSessionClient<AsyncHttpClient>>

source§

impl<'a, T> IntoResponseAsync<'a, DeltaPhantom<T>>where for<'de> T: Deserialize<'de> + 'static + Send + ODataNextLink + Clone,

source

pub async fn build(self) -> DispatchDelta<T, RequestBuilder>

source

pub async fn send(self) -> Receiver<Delta<T>>

source§

impl<'a> IntoResponseAsync<'a, AsyncDownload>

source

pub async fn download<P: AsRef<Path>>( self, path: P ) -> GraphResult<AsyncDownload>