Struct graph_rs_sdk::http::HttpClient
source · [−]pub struct HttpClient<Client> { /* private fields */ }Implementations
pub async fn download(
&'_ self
) -> DownloadClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>, Arc<Mutex<DownloadRequest>>>
pub async fn upload_session(
&'_ self
) -> Result<UploadSessionClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>>, GraphFailure>
pub async fn execute<T>(&'_ self) -> Result<GraphResponse<T>, GraphFailure> where
T: for<'de> Deserialize<'de>,
pub fn download(
&self
) -> DownloadClient<HttpClient<RefCell<GraphRequest<Client, Body, Form>>>, RefCell<DownloadRequest>>
pub fn upload_session(
&self
) -> Result<UploadSessionClient<HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>, GraphFailure>
pub fn execute<T>(&self) -> Result<GraphResponse<T>, GraphFailure> where
T: for<'de> Deserialize<'de>,
Trait Implementations
impl From<GraphRequest<Client, Body, Form>> for HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>
impl From<GraphRequest<Client, Body, Form>> for HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>
pub fn from(
client: GraphRequest<Client, Body, Form>
) -> HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>
pub fn from(
client: GraphRequest<Client, Body, Form>
) -> HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>
Performs the conversion.
impl From<GraphRequest<Client, Body, Form>> for HttpClient<RefCell<GraphRequest<Client, Body, Form>>>
impl From<GraphRequest<Client, Body, Form>> for HttpClient<RefCell<GraphRequest<Client, Body, Form>>>
pub fn from(
client: GraphRequest<Client, Body, Form>
) -> HttpClient<RefCell<GraphRequest<Client, Body, Form>>>
pub fn from(
client: GraphRequest<Client, Body, Form>
) -> HttpClient<RefCell<GraphRequest<Client, Body, Form>>>
Performs the conversion.
pub fn set_body<T>(&self, body: T) where
T: Into<<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>> as RequestClient>::Body>,
pub fn set_form(
&self,
form: <HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>> as RequestClient>::Form
)
pub fn set_request(
&self,
req_att: Vec<RequestAttribute<Body, Form>, Global>
) -> Result<(), GraphFailure>
fn set_body_with_serialize<B>(&self, body: &B) -> Result<(), GraphFailure> where
B: Serialize,
pub fn set_body<T>(&self, body: T) where
T: Into<<HttpClient<RefCell<GraphRequest<Client, Body, Form>>> as RequestClient>::Body>,
pub fn set_form(
&self,
form: <HttpClient<RefCell<GraphRequest<Client, Body, Form>>> as RequestClient>::Form
)
pub fn set_request(
&self,
req_att: Vec<RequestAttribute<Body, Form>, Global>
) -> Result<(), GraphFailure>
fn set_body_with_serialize<B>(&self, body: &B) -> Result<(), GraphFailure> where
B: Serialize,
Auto Trait Implementations
impl<Client> RefUnwindSafe for HttpClient<Client> where
Client: RefUnwindSafe,
impl<Client> Send for HttpClient<Client> where
Client: Send,
impl<Client> Sync for HttpClient<Client> where
Client: Sync,
impl<Client> Unpin for HttpClient<Client> where
Client: Unpin,
impl<Client> UnwindSafe for HttpClient<Client> where
Client: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more