pub struct OAuth<'a>(_, _);
Implementations
sourceimpl<'a> OAuth<'a>
impl<'a> OAuth<'a>
pub fn new(client: &'a HttpClient, key: String, secret: String) -> OAuth<'_>
pub fn auth_uri<T: Into<Permissions>>(&self, scope: T) -> Url
pub fn auth_uri_for<T: Request>(&self) -> Url
pub fn request_token(&self, code: &str) -> Result<AccessToken, OAuthError>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for OAuth<'a>
impl<'a> Send for OAuth<'a>
impl<'a> Sync for OAuth<'a>
impl<'a> Unpin for OAuth<'a>
impl<'a> !UnwindSafe for OAuth<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more