Struct msgraph_rs::client::GraphClient
source · 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(&self, path: &str, body: Value) -> Result<Value, Box<dyn Error>>
pub fn delete(&self, path: &str) -> Result<(), Box<dyn Error>>
pub fn patch(&self, path: &str, body: Value) -> Result<Value, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for GraphClient
impl !RefUnwindSafe for GraphClient
impl Send for GraphClient
impl Sync for GraphClient
impl Unpin for GraphClient
impl !UnwindSafe 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