Struct graph_http::api_impl::BlockingRequestHandler
source · pub struct BlockingRequestHandler { /* private fields */ }
Implementations§
source§impl BlockingRequestHandler
impl BlockingRequestHandler
pub fn new( inner: BlockingClient, request_components: RequestComponents, err: Option<GraphFailure>, body: Option<BodyRead> ) -> 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) -> BlockingPaging
sourcepub fn build(self) -> GraphResult<RequestBuilder>
pub fn build(self) -> GraphResult<RequestBuilder>
Builds the request and returns a reqwest::blocking::RequestBuilder
.
pub fn send(self) -> GraphResult<Response>
Trait Implementations§
source§impl AsMut<Url> for BlockingRequestHandler
impl AsMut<Url> for BlockingRequestHandler
source§impl AsRef<Url> for BlockingRequestHandler
impl AsRef<Url> for BlockingRequestHandler
source§impl Default for BlockingRequestHandler
impl Default for BlockingRequestHandler
source§fn default() -> BlockingRequestHandler
fn default() -> BlockingRequestHandler
Returns the “default value” for a type. Read more
source§impl ODataQuery for BlockingRequestHandler
impl ODataQuery for BlockingRequestHandler
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 BlockingRequestHandler
impl Send for BlockingRequestHandler
impl !Sync for BlockingRequestHandler
impl Unpin for BlockingRequestHandler
impl !UnwindSafe for BlockingRequestHandler
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