pub struct AuthRequest {
pub client_id: String,
pub client_secret: String,
pub grant_type: Option<String>,
pub scope: Option<String>,
}
Expand description
§Input Parameters
Parameter | Description |
---|---|
client_id | The Client ID of your application, retrieved from the Direct Dashboard. |
client_secret | The Client Secret of your application. This should be treated like your application password. |
grant_type | To access the Uber Direct API, authenticate your application by setting this to the client_credentials grant type. This will create an OAuth 2.0 access token with the specified scope. |
scope | Specifies the Uber developer endpoints that this token has access to. For Uber Direct, the scope will always be “eats.deliveries”. |
Fields§
§client_id: String
§client_secret: String
§grant_type: Option<String>
§scope: Option<String>
Implementations§
Trait Implementations§
Source§impl Debug for AuthRequest
impl Debug for AuthRequest
Source§impl Default for AuthRequest
impl Default for AuthRequest
Source§fn default() -> AuthRequest
fn default() -> AuthRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuthRequest
impl RefUnwindSafe for AuthRequest
impl Send for AuthRequest
impl Sync for AuthRequest
impl Unpin for AuthRequest
impl UnwindSafe for AuthRequest
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