pub struct DiscogsOAuthClient { /* private fields */ }Implementations§
Source§impl DiscogsOAuthClient
impl DiscogsOAuthClient
pub fn new( consumer_key: impl Into<String>, consumer_secret: impl Into<String>, user_agent: impl Into<String>, ) -> Result<Self>
pub async fn request_token(&self, callback_url: &str) -> Result<RequestToken>
pub async fn access_token( &self, request_token: &str, request_token_secret: &str, verifier: &str, ) -> Result<AccessToken>
Trait Implementations§
Source§impl Clone for DiscogsOAuthClient
impl Clone for DiscogsOAuthClient
Source§fn clone(&self) -> DiscogsOAuthClient
fn clone(&self) -> DiscogsOAuthClient
Returns a duplicate of the value. Read more
1.0.0 · 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 DiscogsOAuthClient
impl !RefUnwindSafe for DiscogsOAuthClient
impl Send for DiscogsOAuthClient
impl Sync for DiscogsOAuthClient
impl Unpin for DiscogsOAuthClient
impl UnsafeUnpin for DiscogsOAuthClient
impl !UnwindSafe for DiscogsOAuthClient
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