Struct graph_http::api_impl::RequestHandler
source · 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 fn build(self) -> GraphResult<RequestBuilder>
pub 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 Default for RequestHandler
impl Default for RequestHandler
source§fn default() -> RequestHandler
fn default() -> RequestHandler
Returns the “default value” for a type. Read more
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 !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