Type Definition graph_http::IntoResponseBlocking
source · pub type IntoResponseBlocking<'a, T> = IntoResponse<'a, T, BlockingHttpClient>;
Implementations§
source§impl<'a, T> IntoResponseBlocking<'a, T>
impl<'a, T> IntoResponseBlocking<'a, T>
pub fn text(self) -> GraphResult<GraphResponse<String>>
pub fn bytes(self) -> GraphResult<GraphResponse<Bytes>>
pub fn paging(self) -> IntoResponseBlocking<'a, NextLink>
source§impl<'a, T> IntoResponseBlocking<'a, T>where
for<'de> T: Deserialize<'de>,
impl<'a, T> IntoResponseBlocking<'a, T>where for<'de> T: Deserialize<'de>,
pub fn build(self) -> DispatchBlocking<T>
pub fn send(self) -> GraphResult<GraphResponse<T>>
pub fn json<U>(self) -> GraphResult<GraphResponse<U>>where for<'de> U: Deserialize<'de>,
source§impl<'a> IntoResponseBlocking<'a, NextLink>
impl<'a> IntoResponseBlocking<'a, NextLink>
sourcepub fn json<V>(self) -> GraphResult<GraphResponse<Vec<V>>>where
for<'de> V: Deserialize<'de>,
pub 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.