pub struct XClient { /* private fields */ }Implementations§
Source§impl XClient
impl XClient
pub fn new( client_id: &str, client_secret: &str, redirect_uri: &str, scopes: Vec<XScope>, ) -> Self
pub fn new_with_token_options( client_id: &str, client_secret: &str, redirect_uri: &str, scopes: Vec<XScope>, try_count: usize, retry_duration: Duration, timeout: Duration, prefix_url: Option<String>, ) -> Self
pub async fn token( &self, code: &str, code_verifier: &str, ) -> Result<(TokenResult, StatusCode, HeaderMap), Error>
Auto Trait Implementations§
impl Freeze for XClient
impl RefUnwindSafe for XClient
impl Send for XClient
impl Sync for XClient
impl Unpin for XClient
impl UnsafeUnpin for XClient
impl UnwindSafe for XClient
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