pub struct DefaultInstalledFlowDelegateWithRedirectURI(pub String);
Expand description
The default installed-flow delegate (i.e.: show URL on stdout). Use this to specify a custom redirect URL.
Tuple Fields§
§0: String
Trait Implementations§
source§impl Clone for DefaultInstalledFlowDelegateWithRedirectURI
impl Clone for DefaultInstalledFlowDelegateWithRedirectURI
source§fn clone(&self) -> DefaultInstalledFlowDelegateWithRedirectURI
fn clone(&self) -> DefaultInstalledFlowDelegateWithRedirectURI
Returns a copy 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 moresource§impl InstalledFlowDelegate for DefaultInstalledFlowDelegateWithRedirectURI
impl InstalledFlowDelegate for DefaultInstalledFlowDelegateWithRedirectURI
source§fn redirect_uri(&self) -> Option<&str>
fn redirect_uri(&self) -> Option<&str>
Configure a custom redirect uri if needed.
source§fn present_user_url<'a>(
&'a self,
url: &'a str,
need_code: bool,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'a>>
fn present_user_url<'a>( &'a self, url: &'a str, need_code: bool, ) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'a>>
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.
Auto Trait Implementations§
impl Freeze for DefaultInstalledFlowDelegateWithRedirectURI
impl RefUnwindSafe for DefaultInstalledFlowDelegateWithRedirectURI
impl Send for DefaultInstalledFlowDelegateWithRedirectURI
impl Sync for DefaultInstalledFlowDelegateWithRedirectURI
impl Unpin for DefaultInstalledFlowDelegateWithRedirectURI
impl UnwindSafe for DefaultInstalledFlowDelegateWithRedirectURI
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)