pub struct TokenRequest {
pub grant_type: String,
pub refresh_token: Option<String>,
pub subject_token: Option<String>,
pub subject_token_type: Option<String>,
pub session: Option<String>,
pub resource: Option<String>,
}Expand description
POST /v1/token, as application/x-www-form-urlencoded.
grant_type | Fields |
|---|---|
refresh_token | refresh_token |
TOKEN_EXCHANGE | subject_token (an ID token), subject_token_type = ID_TOKEN_TYPE |
TOKEN_EXCHANGE | subject_token (a person access token), subject_token_type = ACCESS_TOKEN_TYPE, session |
Fields§
§grant_type: String§refresh_token: Option<String>§subject_token: Option<String>§subject_token_type: Option<String>§session: Option<String>The session ID of a session token.
resource: Option<String>The server that the token is for (RFC 8707). When it is set, it must be the public URL of the server.
Trait Implementations§
Source§impl Clone for TokenRequest
impl Clone for TokenRequest
Source§fn clone(&self) -> TokenRequest
fn clone(&self) -> TokenRequest
Returns a duplicate 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 Debug for TokenRequest
impl Debug for TokenRequest
Source§impl Default for TokenRequest
impl Default for TokenRequest
Source§fn default() -> TokenRequest
fn default() -> TokenRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TokenRequest
impl<'de> Deserialize<'de> for TokenRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for TokenRequest
impl JsonSchema for TokenRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for TokenRequest
impl RefUnwindSafe for TokenRequest
impl Send for TokenRequest
impl Sync for TokenRequest
impl Unpin for TokenRequest
impl UnsafeUnpin for TokenRequest
impl UnwindSafe for TokenRequest
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