Struct graph_http::IntoResponse
source · pub struct IntoResponse<'a, T, Client>where
Client: RequestClient,{ /* private fields */ }
Implementations§
source§impl<'a, T, Client> IntoResponse<'a, T, Client>where
Client: RequestClient,
impl<'a, T, Client> IntoResponse<'a, T, Client>where Client: RequestClient,
pub fn new(client: &'a Client) -> IntoResponse<'a, T, Client>
pub fn new_error( client: &'a Client, error: GraphFailure ) -> IntoResponse<'a, T, Client>
sourcepub fn set_timeout(self, duration: Duration) -> Self
pub fn set_timeout(self, duration: Duration) -> Self
Using this method set the timeout not only for this API call but also for the entire lifetime of the Client.
pub fn query(self, key: &str, value: &str) -> Self
sourcepub fn select(self, value: &[&str]) -> Self
pub fn select(self, value: &[&str]) -> Self
Filters properties (columns). See the docs
sourcepub fn expand(self, value: &[&str]) -> Self
pub fn expand(self, value: &[&str]) -> Self
Retrieves related resources. See the docs
sourcepub fn filter(self, value: &[&str]) -> Self
pub fn filter(self, value: &[&str]) -> Self
Filters results (rows). See the docs
sourcepub fn order_by(self, value: &[&str]) -> Self
pub fn order_by(self, value: &[&str]) -> Self
Orders results. See the docs
sourcepub fn search(self, value: &str) -> Self
pub fn search(self, value: &str) -> Self
Returns results based on search criteria. See the docs
sourcepub fn format(self, value: &str) -> Self
pub fn format(self, value: &str) -> Self
Returns the results in the specified media format. See the docs
sourcepub fn skip(self, value: &str) -> Self
pub fn skip(self, value: &str) -> Self
Indexes into a result set. Also used by some APIs to implement paging and can be used together with $top to manually page results. See the docs
sourcepub fn top(self, value: &str) -> Self
pub fn top(self, value: &str) -> Self
Sets the page size of results. See the docs
sourcepub fn skip_token(self, value: &str) -> Self
pub fn skip_token(self, value: &str) -> Self
Retrieves the next page of results from result sets that span multiple pages. (Some APIs use $skip instead.) See the docs
sourcepub fn count(self, value: &str) -> Self
pub fn count(self, value: &str) -> Self
Retrieves the total count of matching resources. See the docs
pub fn cast(self, value: &str) -> Self
pub fn header<H: IntoHeaderName>(self, name: H, value: HeaderValue) -> Self
source§impl<'a, T> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>
impl<'a, T> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>
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> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>where
for<'de> T: Deserialize<'de>,
impl<'a, T> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>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> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>
impl<'a> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>
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.
source§impl<'a> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>
impl<'a> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>
pub fn build(self) -> DispatchBlocking<UploadSessionClient<BlockingHttpClient>>
pub fn send(self) -> GraphResult<UploadSessionClient<BlockingHttpClient>>
source§impl<'a> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>
impl<'a> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>
pub fn build(self) -> DispatchBlocking<GraphResponse<NoContent>>
pub fn send(self) -> GraphResult<GraphResponse<Value>>
source§impl<'a, T> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>where
for<'de> T: Deserialize<'de> + 'static + Send + ODataNextLink + Clone,
impl<'a, T> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>where for<'de> T: Deserialize<'de> + 'static + Send + ODataNextLink + Clone,
pub fn build(self) -> DispatchDelta<T, RequestBuilder>
pub fn send(self) -> Receiver<Delta<T>>
source§impl<'a> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>
impl<'a> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>
pub fn download<P: AsRef<Path>>(self, path: P) -> GraphResult<BlockingDownload>
source§impl<'a, T> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>
impl<'a, T> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>
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> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>where
for<'de> T: Deserialize<'de>,
impl<'a, T> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>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> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>
impl<'a> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>
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.