Struct graph_rs_sdk::http::DispatchRequest
source · [−]pub struct DispatchRequest<T, Builder> { /* private fields */ }
Implementations
pub fn new(
request: RequestBuilder,
file: Option<PathBuf>,
error: Option<GraphFailure>
) -> DispatchRequest<T, RequestBuilder>
pub fn json<U>(self) -> Result<GraphResponse<U>, GraphFailure> where
U: for<'de> Deserialize<'de>,
pub fn send(
self
) -> Result<UploadSessionClient<HttpClient<RefCell<GraphRequest<Client, Body, Form>>>>, GraphFailure>
pub fn new(
request: RequestBuilder,
file: Option<PathBuf>,
error: Option<GraphFailure>
) -> DispatchRequest<T, RequestBuilder>
pub async fn json<U>(self) -> Result<GraphResponse<U>, GraphFailure> where
U: for<'de> Deserialize<'de>,
pub async fn send(
self
) -> Result<UploadSessionClient<HttpClient<Arc<Mutex<GraphRequest<Client, Body, Form>>>>>, GraphFailure>
Auto Trait Implementations
impl<T, Builder> !RefUnwindSafe for DispatchRequest<T, Builder>
impl<T, Builder> Send for DispatchRequest<T, Builder> where
Builder: Send,
T: Send,
impl<T, Builder> Sync for DispatchRequest<T, Builder> where
Builder: Sync,
T: Sync,
impl<T, Builder> Unpin for DispatchRequest<T, Builder> where
Builder: Unpin,
T: Unpin,
impl<T, Builder> !UnwindSafe for DispatchRequest<T, Builder>
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