Struct twapi_v2::oauth::TwitterOauth
source · pub struct TwitterOauth { /* private fields */ }Available on crate feature
oauth only.Implementations§
source§impl TwitterOauth
impl TwitterOauth
pub fn new( api_key_code: &str, api_secret_code: &str, callback_url: &str, scopes: Vec<TwitterScope> ) -> Result<Self, OAuthError>
pub fn oauth_url(&self) -> OAuthUrlResult
pub async fn token( &self, pkce_verifier_str: &str, code: &str ) -> Result<TokenResult, OAuthError>
Auto Trait Implementations§
impl RefUnwindSafe for TwitterOauth
impl Send for TwitterOauth
impl Sync for TwitterOauth
impl Unpin for TwitterOauth
impl UnwindSafe for TwitterOauth
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