Struct graph_http::IntoResponse
source · [−]pub struct IntoResponse<'a, T, Client> where
Client: RequestClient, { /* private fields */ }
Implementations
sourceimpl<'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
sourceimpl<'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 json<U>(self) -> GraphResult<GraphResponse<U>> where
for<'de> U: Deserialize<'de>,
pub fn text(self) -> GraphResult<GraphResponse<String>>
pub fn bytes(self) -> GraphResult<GraphResponse<Bytes>>
sourceimpl<'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>>
sourceimpl<'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>>
sourceimpl<'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>>
sourceimpl<'a, T: 'static + Send + ODataLink + Clone> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>> where
for<'de> T: Deserialize<'de>,
impl<'a, T: 'static + Send + ODataLink + Clone> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>> where
for<'de> T: Deserialize<'de>,
pub fn build(self) -> DispatchDelta<T, RequestBuilder>
pub fn send(self) -> Receiver<Delta<T>>
sourceimpl<'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>
sourceimpl<'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 json<U>(self) -> GraphResult<GraphResponse<U>> where
for<'de> U: Deserialize<'de>,
pub async fn text(self) -> GraphResult<GraphResponse<String>>
pub async fn bytes(self) -> GraphResult<GraphResponse<Bytes>>
sourceimpl<'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>>
sourceimpl<'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>>>>>
pub async fn build(self) -> DispatchAsync<GraphResponse<NoContent>>
pub async fn send(self) -> GraphResult<GraphResponse<Value>>
sourceimpl<'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>>>>>
pub async fn build(self) -> DispatchAsync<UploadSessionClient<AsyncHttpClient>>
pub async fn send(self) -> GraphResult<UploadSessionClient<AsyncHttpClient>>
sourceimpl<'a, T: 'static + Send + ODataLink + Clone> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>> where
for<'de> T: Deserialize<'de>,
impl<'a, T: 'static + Send + ODataLink + Clone> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>> where
for<'de> T: Deserialize<'de>,
pub async fn build(self) -> DispatchDelta<T, RequestBuilder>
pub async fn send(self) -> Receiver<Delta<T>>
sourceimpl<'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>>>>>
pub async fn download<P: AsRef<Path>>(
self,
path: P
) -> GraphResult<AsyncDownload>
Auto Trait Implementations
impl<'a, T, Client> !RefUnwindSafe for IntoResponse<'a, T, Client>
impl<'a, T, Client> Send for IntoResponse<'a, T, Client> where
Client: Sync,
T: Send,
impl<'a, T, Client> Sync for IntoResponse<'a, T, Client> where
Client: Sync,
T: Sync,
impl<'a, T, Client> Unpin for IntoResponse<'a, T, Client> where
T: Unpin,
impl<'a, T, Client> !UnwindSafe for IntoResponse<'a, T, Client>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more