Struct elefren::registration::Registered [−][src]
pub struct Registered<H: HttpSend> { /* fields omitted */ }
Represents the state of the auth flow when the app has been registered but the user is not authenticated
Methods
impl<H: HttpSend> Registered<H>
[src]
impl<H: HttpSend> Registered<H>
Returns the full url needed for authorisation. This needs to be opened in a browser.
pub fn complete(self, code: &str) -> Result<Mastodon<H>>
[src]
pub fn complete(self, code: &str) -> Result<Mastodon<H>>
Create an access token from the client id, client secret, and code provided by the authorisation url.
Trait Implementations
impl<H: Debug + HttpSend> Debug for Registered<H>
[src]
impl<H: Debug + HttpSend> Debug for Registered<H>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<H: Clone + HttpSend> Clone for Registered<H>
[src]
impl<H: Clone + HttpSend> Clone for Registered<H>
fn clone(&self) -> Registered<H>
[src]
fn clone(&self) -> Registered<H>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<H> Send for Registered<H> where
H: Send,
impl<H> Send for Registered<H> where
H: Send,
impl<H> Sync for Registered<H> where
H: Sync,
impl<H> Sync for Registered<H> where
H: Sync,