pub struct RequestHandler { /* private fields */ }
Implementations§
Source§impl RequestHandler
impl RequestHandler
pub fn new( inner: Client, request_components: RequestComponents, err: Option<GraphFailure>, body: Option<BodyRead>, ) -> RequestHandler
pub fn into_blocking(self) -> BlockingRequestHandler
Sourcepub fn err(&self) -> Option<&GraphFailure>
pub fn err(&self) -> Option<&GraphFailure>
pub fn url(&self) -> Url
pub fn query<T: Serialize + ?Sized>(self, query: &T) -> Self
pub fn append_query_pair<KV: AsRef<str>>(self, key: KV, value: KV) -> Self
pub fn extend_path<I: AsRef<str>>(self, path: &[I]) -> Self
Sourcepub fn header<K: Into<HeaderName>, V: Into<HeaderValue>>(
self,
header_name: K,
header_value: V,
) -> Self
pub fn header<K: Into<HeaderName>, V: Into<HeaderValue>>( self, header_name: K, header_value: V, ) -> Self
Insert a header for the request.
Sourcepub fn headers(self, header_map: HeaderMap) -> Self
pub fn headers(self, header_map: HeaderMap) -> Self
Set the headers for the request using reqwest::HeaderMap
Sourcepub fn headers_mut(&mut self) -> &mut HeaderMap
pub fn headers_mut(&mut self) -> &mut HeaderMap
Get a mutable reference to the headers.
pub fn paging(self) -> Paging
Sourcepub async fn build(self) -> GraphResult<RequestBuilder>
pub async fn build(self) -> GraphResult<RequestBuilder>
Builds the request and returns a reqwest::RequestBuilder
.
pub async fn send(self) -> GraphResult<Response>
Trait Implementations§
Source§impl AsMut<Url> for RequestHandler
impl AsMut<Url> for RequestHandler
Source§impl AsRef<Url> for RequestHandler
impl AsRef<Url> for RequestHandler
Source§impl ODataQuery for RequestHandler
impl ODataQuery for RequestHandler
fn append_query_pair<KV: AsRef<str>>(self, key: KV, value: KV) -> Self
Source§fn count<S: AsRef<str>>(self, value: S) -> Self
fn count<S: AsRef<str>>(self, value: S) -> Self
Retrieves the total count of matching resources.
See the docs
Source§fn select(self, value: &[&str]) -> Self
fn select(self, value: &[&str]) -> Self
Filters properties (columns).
See the docs
Source§fn expand(self, value: &[&str]) -> Self
fn expand(self, value: &[&str]) -> Self
Retrieves related resources.
See the docs
Source§fn filter(self, value: &[&str]) -> Self
fn filter(self, value: &[&str]) -> Self
Filters results (rows).
See the docs
Source§fn order_by(self, value: &[&str]) -> Self
fn order_by(self, value: &[&str]) -> Self
Orders results.
See the docs
Source§fn search<S: AsRef<str>>(self, value: S) -> Self
fn search<S: AsRef<str>>(self, value: S) -> Self
Returns results based on search criteria.
See the docs
Source§fn format<S: AsRef<str>>(self, value: S) -> Self
fn format<S: AsRef<str>>(self, value: S) -> Self
Returns the results in the specified media format.
See the docs
Source§fn skip<S: AsRef<str>>(self, value: S) -> Self
fn skip<S: AsRef<str>>(self, value: S) -> 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§fn skip_token<S: AsRef<str>>(self, value: S) -> Self
fn skip_token<S: AsRef<str>>(self, value: S) -> Self
Retrieves the next page of results from result sets that span multiple pages.
(Some APIs use $skip instead.)
See the docs
Source§fn delta_token<S: AsRef<str>>(self, value: S) -> Self
fn delta_token<S: AsRef<str>>(self, value: S) -> Self
Retrieves the next page of results from result sets that span multiple pages.
(Some APIs use $skip instead.)
See the docs
Auto Trait Implementations§
impl !Freeze for RequestHandler
impl !RefUnwindSafe for RequestHandler
impl Send for RequestHandler
impl !Sync for RequestHandler
impl Unpin for RequestHandler
impl !UnwindSafe for RequestHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more