Struct dropbox_sdk::oauth2::Oauth2AuthorizeUrlBuilder [−][src]
Builds a URL that can be given to the user to visit to have Dropbox authorize your app.
Implementations
impl<'a> Oauth2AuthorizeUrlBuilder<'a>
[src]
pub fn new(client_id: &'a str, oauth2_type: Oauth2Type) -> Self
[src]
Return a new empty builder for the given client ID and OAuth2 token type.
pub fn force_reapprove(self, value: bool) -> Self
[src]
Set whether the user should be prompted to approve the request regardless of whether they have approved it before.
pub fn force_reauthentication(self, value: bool) -> Self
[src]
Set whether the user should have to re-login when approving the request.
pub fn disable_signup(self, value: bool) -> Self
[src]
Set whether new user signups should be allowed or not while appproving the request.
pub fn redirect_uri(self, value: &'a str) -> Self
[src]
Set the URI the approve request should redirect the user to when completed.
pub fn state(self, value: &'a str) -> Self
[src]
Set some opaque value to be passed along to the redirect URI when completing the request.
pub fn require_role(self, value: &'a str) -> Self
[src]
Set a given role to require for the request.
pub fn locale(self, value: &'a str) -> Self
[src]
Force a specific locale when prompting the user, instead of the locale indicated by their browser.
pub fn build(self) -> Url
[src]
Build the OAuth2 authorization URL from the previously given parameters.
Trait Implementations
impl<'a> Debug for Oauth2AuthorizeUrlBuilder<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Oauth2AuthorizeUrlBuilder<'a>
impl<'a> Send for Oauth2AuthorizeUrlBuilder<'a>
impl<'a> Sync for Oauth2AuthorizeUrlBuilder<'a>
impl<'a> Unpin for Oauth2AuthorizeUrlBuilder<'a>
impl<'a> UnwindSafe for Oauth2AuthorizeUrlBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &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.
pub 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>,