[−][src]Struct yup_oauth2::DefaultFlowDelegate
Uses all default implementations in the FlowDelegate trait.
Trait Implementations
impl FlowDelegate for DefaultFlowDelegate
[src]
fn expired(&mut self, _: &DateTime<Utc>)
[src]
Called if the request code is expired. You will have to start over in this case. This will be the last call the delegate receives. Given DateTime
is the expiration date Read more
fn denied(&mut self)
[src]
Called if the user denied access. You would have to start over. This will be the last call the delegate receives. Read more
fn pending(&mut self, _: &PollInformation) -> Retry
[src]
Called as long as we are waiting for the user to authorize us. Can be used to print progress information, or decide to time-out. Read more
fn redirect_uri(&self) -> Option<String>
[src]
Configure a custom redirect uri if needed.
fn present_user_code(&mut self, pi: &PollInformation)
[src]
The server has returned a user_code
which must be shown to the user, along with the verification_url
. # Notes * Will be called exactly once, provided we didn't abort during request_code
phase. * Will only be called if the Authenticator's flow_type is FlowType::Device
. Read more
fn present_user_url<S: AsRef<str> + Display>(
&mut self,
url: S,
need_code: bool
) -> Box<dyn Future<Item = Option<String>, Error = Box<dyn Error + Send>> + Send>
[src]
&mut self,
url: S,
need_code: bool
) -> Box<dyn Future<Item = Option<String>, Error = Box<dyn Error + Send>> + Send>
This method is used by the InstalledFlow. We need the user to navigate to a URL using their browser and potentially paste back a code (or maybe not). Whether they have to enter a code depends on the InstalledFlowReturnMethod used. Read more
impl Clone for DefaultFlowDelegate
[src]
fn clone(&self) -> DefaultFlowDelegate
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Sync for DefaultFlowDelegate
impl Send for DefaultFlowDelegate
impl Unpin for DefaultFlowDelegate
impl RefUnwindSafe for DefaultFlowDelegate
impl UnwindSafe for DefaultFlowDelegate
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,