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 fn oauth_url_with_state(&self, state: Option<String>) -> OAuthUrlResult
pub async fn token( &self, pkce_verifier_str: &str, code: &str, twapi_options: Option<&TwapiOptions>, ) -> Result<TokenResult, OAuthError>
Auto Trait Implementations§
impl Freeze for TwitterOauth
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more