Type Definition graph_http::BlockingClient

source ·
pub type BlockingClient = GraphRequest<Client, Body, Form>;

Implementations§

source§

impl BlockingClient

source

pub fn new_blocking(url: GraphUrl) -> BlockingClient

source

pub fn inner_client(&mut self) -> &mut Client

source

pub fn download(&mut self) -> BlockingDownload

source

pub fn upload_session( &mut self ) -> GraphResult<UploadSessionClient<BlockingHttpClient>>

source

pub fn build_upload_session(&mut self) -> (Option<PathBuf>, RequestBuilder)

source

pub fn build(&mut self) -> RequestBuilder

source

pub fn response(&mut self) -> GraphResult<Response>

Builds the request and sends it.

Requests that require a redirect are automatic so we don’t need to do anything special for these requests.

source

pub fn execute<T>(&mut self) -> GraphResult<GraphResponse<T>>where for<'de> T: Deserialize<'de>,

Builds the requests and sends it, converting to a GraphResponse and deserializing the body.

source

pub fn clone(&mut self) -> Self

Trait Implementations§

source§

impl Default for BlockingClient

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<Url> for BlockingClient

source§

fn from(url: Url) -> Self

Converts to this type from the input type.