[−][src]Struct graph_http::GraphRequest
Fields
url: GraphUrlmethod: Methodbody: Option<Body>headers: HeaderMap<HeaderValue>upload_session_file: Option<PathBuf>download_dir: Option<PathBuf>form: Option<Form>req_type: RequestTypeImplementations
impl GraphRequest<Client, Body, Form>[src]
pub fn new_async(url: GraphUrl) -> GraphRequest<Client, Body, Form>[src]
pub fn inner_client(&mut self) -> &mut Client[src]
pub fn download(&mut self) -> AsyncDownload[src]
pub async fn upload_session(
&mut self
) -> GraphResult<UploadSessionClient<AsyncHttpClient>>[src]
&mut self
) -> GraphResult<UploadSessionClient<AsyncHttpClient>>
pub fn build_upload_session(&mut self) -> (Option<PathBuf>, RequestBuilder)[src]
pub fn build(&mut self) -> RequestBuilder[src]
pub async fn response(&mut self) -> GraphResult<Response>[src]
pub async fn execute<T>(&mut self) -> GraphResult<GraphResponse<T>> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
pub fn clone(&mut self) -> Self[src]
impl GraphRequest<Client, Body, Form>[src]
pub fn new_blocking(url: GraphUrl) -> BlockingClient[src]
pub fn inner_client(&mut self) -> &mut Client[src]
pub fn download(&mut self) -> BlockingDownload[src]
pub fn upload_session(
&mut self
) -> GraphResult<UploadSessionClient<BlockingHttpClient>>[src]
&mut self
) -> GraphResult<UploadSessionClient<BlockingHttpClient>>
pub fn build_upload_session(&mut self) -> (Option<PathBuf>, RequestBuilder)[src]
pub fn build(&mut self) -> RequestBuilder[src]
pub fn response(&mut self) -> GraphResult<Response>[src]
pub fn execute<T>(&mut self) -> GraphResult<GraphResponse<T>> where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
pub fn clone(&mut self) -> Self[src]
Trait Implementations
impl<Client, Body, Form> AsMut<GraphUrl> for GraphRequest<Client, Body, Form>[src]
impl<Client, Body, Form> AsRef<GraphUrl> for GraphRequest<Client, Body, Form>[src]
impl<Client, Body, Form> Debug for GraphRequest<Client, Body, Form>[src]
impl Default for GraphRequest<Client, Body, Form>[src]
impl From<GraphRequest<Client, Body, Form>> for HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>[src]
impl From<GraphRequest<Client, Body, Form>> for HttpClient<RefCell<BlockingClient>>[src]
pub fn from(client: BlockingClient) -> Self[src]
impl From<Url> for GraphRequest<Client, Body, Form>[src]
Auto Trait Implementations
impl<Client, Body, Form> !RefUnwindSafe for GraphRequest<Client, Body, Form>[src]
impl<Client, Body, Form> Send for GraphRequest<Client, Body, Form> where
Body: Send,
Client: Send,
Form: Send, [src]
Body: Send,
Client: Send,
Form: Send,
impl<Client, Body, Form> Sync for GraphRequest<Client, Body, Form> where
Body: Sync,
Client: Sync,
Form: Sync, [src]
Body: Sync,
Client: Sync,
Form: Sync,
impl<Client, Body, Form> Unpin for GraphRequest<Client, Body, Form> where
Body: Unpin,
Client: Unpin,
Form: Unpin, [src]
Body: Unpin,
Client: Unpin,
Form: Unpin,
impl<Client, Body, Form> !UnwindSafe for GraphRequest<Client, Body, Form>[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,