Struct graph_http::api_impl::BlockingClient
source · pub struct BlockingClient { /* private fields */ }
Implementations§
source§impl BlockingClient
impl BlockingClient
pub fn new<AT: ToString>(access_token: AT) -> BlockingClient
sourcepub fn new_env<K: AsRef<OsStr>>(env_var: K) -> Result<BlockingClient, VarError>
pub fn new_env<K: AsRef<OsStr>>(env_var: K) -> Result<BlockingClient, VarError>
Create a new client and use the given environment variable for the access token.
pub fn builder() -> GraphClientConfiguration
pub fn headers(&self) -> &HeaderMap
Trait Implementations§
source§impl Clone for BlockingClient
impl Clone for BlockingClient
source§fn clone(&self) -> BlockingClient
fn clone(&self) -> BlockingClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlockingClient
impl Debug for BlockingClient
Auto Trait Implementations§
impl !RefUnwindSafe for BlockingClient
impl Send for BlockingClient
impl Sync for BlockingClient
impl Unpin for BlockingClient
impl !UnwindSafe for BlockingClient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more