pub struct GraphClient { /* private fields */ }Implementations§
Source§impl GraphClient
impl GraphClient
pub fn new(auth: AuthContext) -> Self
Sourcepub async fn get_json<T: DeserializeOwned>(&self, path: &str) -> Result<T>
pub async fn get_json<T: DeserializeOwned>(&self, path: &str) -> Result<T>
Perform a GET and parse JSON, with retry/backoff and Graph error mapping.
Trait Implementations§
Source§impl Clone for GraphClient
impl Clone for GraphClient
Source§fn clone(&self) -> GraphClient
fn clone(&self) -> GraphClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GraphClient
impl !RefUnwindSafe for GraphClient
impl Send for GraphClient
impl Sync for GraphClient
impl Unpin for GraphClient
impl UnsafeUnpin 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