Struct graph_http::api_impl::Client
source · pub struct Client { /* private fields */ }
Implementations§
source§impl Client
impl Client
pub fn new<AT: ToString>(access_token: AT) -> Client
sourcepub fn new_env<K: AsRef<OsStr>>(env_var: K) -> Result<Client, VarError>
pub fn new_env<K: AsRef<OsStr>>(env_var: K) -> Result<Client, 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§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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