[][src]Struct graph_http::HttpClient

pub struct HttpClient<Client> { /* fields omitted */ }

Implementations

impl HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>[src]

pub fn new(
    url: GraphUrl
) -> HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>
[src]

pub async fn download(&self) -> AsyncDownload[src]

pub async fn upload_session(
    &self
) -> GraphResult<UploadSessionClient<AsyncHttpClient>>
[src]

pub async fn build_upload_session(&self) -> (Option<PathBuf>, RequestBuilder)[src]

pub async fn build(&self) -> RequestBuilder[src]

pub async fn response(&self) -> GraphResult<Response>[src]

pub async fn execute<T>(&self) -> GraphResult<GraphResponse<T>> where
    T: Deserialize<'de>, 
[src]

impl HttpClient<RefCell<BlockingClient>>[src]

pub fn new(url: GraphUrl) -> HttpClient<RefCell<BlockingClient>>[src]

pub fn download(&self) -> BlockingDownload[src]

pub fn upload_session(
    &self
) -> GraphResult<UploadSessionClient<BlockingHttpClient>>
[src]

pub fn build_upload_session(&self) -> (Option<PathBuf>, RequestBuilder)[src]

pub fn build(&self) -> RequestBuilder[src]

pub fn response(&self) -> GraphResult<Response>[src]

pub fn execute<T>(&self) -> GraphResult<GraphResponse<T>> where
    T: Deserialize<'de>, 
[src]

pub fn inner_url_ref<F>(&self, f: F) where
    F: Fn(&GraphUrl), 
[src]

Trait Implementations

impl Debug for HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>[src]

impl Debug for HttpClient<RefCell<BlockingClient>>[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]

impl RequestClient for HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>[src]

type Body = Body

type Form = Form

impl RequestClient for HttpClient<RefCell<BlockingClient>>[src]

type Body = Body

type Form = Form

Auto Trait Implementations

impl<Client> RefUnwindSafe for HttpClient<Client> where
    Client: RefUnwindSafe
[src]

impl<Client> Send for HttpClient<Client> where
    Client: Send
[src]

impl<Client> Sync for HttpClient<Client> where
    Client: Sync
[src]

impl<Client> Unpin for HttpClient<Client> where
    Client: Unpin
[src]

impl<Client> UnwindSafe for HttpClient<Client> where
    Client: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.