pub struct GraphClient { /* private fields */ }Implementations§
Source§impl GraphClient
impl GraphClient
pub fn new( client_id: &str, client_secret: &str, tenant_id: &str, beta: bool, ) -> Result<Self, Box<dyn Error>>
pub fn get_http_client(&self) -> &Client
pub fn get_access_token(&self) -> &str
pub fn get(&self, path: &str) -> Result<Value, Box<dyn Error>>
pub fn post_raw( &self, path: &str, body: Value, ) -> Result<Response, Box<dyn Error>>
pub fn post(&self, path: &str, body: Value) -> Result<Value, Box<dyn Error>>
pub fn delete(&self, path: &str) -> Result<Response, Box<dyn Error>>
pub fn patch(&self, path: &str, body: Value) -> Result<Value, Box<dyn Error>>
Auto Trait Implementations§
impl !RefUnwindSafe for GraphClient
impl !UnwindSafe for GraphClient
impl Freeze for GraphClient
impl Send for GraphClient
impl Sync for GraphClient
impl Unpin for GraphClient
impl UnsafeUnpin for GraphClient
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