pub struct IntoResponse<'a, T, Client>where
    Client: RequestClient,{ /* private fields */ }

Implementations§

source§

impl<'a, T, Client> IntoResponse<'a, T, Client>where Client: RequestClient,

source

pub fn new(client: &'a Client) -> IntoResponse<'a, T, Client>

source

pub fn new_error( client: &'a Client, error: GraphFailure ) -> IntoResponse<'a, T, Client>

source

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.

source

pub fn query(self, key: &str, value: &str) -> Self

source

pub fn select(self, value: &[&str]) -> Self

Filters properties (columns). See the docs

source

pub fn expand(self, value: &[&str]) -> Self

Retrieves related resources. See the docs

source

pub fn filter(self, value: &[&str]) -> Self

Filters results (rows). See the docs

source

pub fn order_by(self, value: &[&str]) -> Self

Orders results. See the docs

source

pub fn search(self, value: &str) -> Self

Returns results based on search criteria. See the docs

source

pub fn format(self, value: &str) -> Self

Returns the results in the specified media format. See the docs

source

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

source

pub fn top(self, value: &str) -> Self

Sets the page size of results. See the docs

source

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

source

pub fn count(self, value: &str) -> Self

Retrieves the total count of matching resources. See the docs

source

pub fn cast(self, value: &str) -> Self

source

pub fn header<H: IntoHeaderName>(self, name: H, value: HeaderValue) -> Self

source§

impl<'a, T> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>

source§

impl<'a, T> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>where for<'de> T: Deserialize<'de>,

source

pub fn build(self) -> DispatchBlocking<T>

source

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

source

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>>>>

source

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>>>>

source§

impl<'a> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>

source§

impl<'a, T> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>where for<'de> T: Deserialize<'de> + 'static + Send + ODataNextLink + Clone,

source

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

source

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

source§

impl<'a> IntoResponse<'a, T, HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>

source

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>>>>>

source§

impl<'a, T> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>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> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>

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> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>

source§

impl<'a> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>

source§

impl<'a, T> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>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> IntoResponse<'a, T, HttpClient<Arc<Mutex<RawMutex, GraphRequest<Client, Body, Form>>>>>

source

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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more