pub struct TokenRequestBody {Show 16 fields
pub email: Option<String>,
pub phone: Option<String>,
pub password: Option<String>,
pub refresh_token: Option<String>,
pub grant_type: Option<String>,
pub gotrue_meta_security: Option<GoTrueMetaSecurity>,
pub code: Option<String>,
pub redirect_to: Option<String>,
pub scope: Option<String>,
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub id_token: Option<String>,
pub nonce: Option<String>,
pub invite_token: Option<String>,
pub provider_token: Option<String>,
pub code_verifier: Option<String>,
}Expand description
Token request body for the /token endpoint.
Fields§
§email: Option<String>§phone: Option<String>§password: Option<String>§refresh_token: Option<String>§grant_type: Option<String>§gotrue_meta_security: Option<GoTrueMetaSecurity>§code: Option<String>§redirect_to: Option<String>§scope: Option<String>§client_id: Option<String>§client_secret: Option<String>§id_token: Option<String>§nonce: Option<String>§invite_token: Option<String>§provider_token: Option<String>§code_verifier: Option<String>Implementations§
Source§impl TokenRequestBody
impl TokenRequestBody
Sourcepub fn builder() -> TokenRequestBodyBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> TokenRequestBodyBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building TokenRequestBody.
On the builder, call .email(...)(optional), .phone(...)(optional), .password(...)(optional), .refresh_token(...)(optional), .grant_type(...)(optional), .gotrue_meta_security(...)(optional), .code(...)(optional), .redirect_to(...)(optional), .scope(...)(optional), .client_id(...)(optional), .client_secret(...)(optional), .id_token(...)(optional), .nonce(...)(optional), .invite_token(...)(optional), .provider_token(...)(optional), .code_verifier(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of TokenRequestBody.
Trait Implementations§
Source§impl Clone for TokenRequestBody
impl Clone for TokenRequestBody
Source§fn clone(&self) -> TokenRequestBody
fn clone(&self) -> TokenRequestBody
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenRequestBody
impl Debug for TokenRequestBody
Source§impl<'de> Deserialize<'de> for TokenRequestBody
impl<'de> Deserialize<'de> for TokenRequestBody
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
Auto Trait Implementations§
impl Freeze for TokenRequestBody
impl RefUnwindSafe for TokenRequestBody
impl Send for TokenRequestBody
impl Sync for TokenRequestBody
impl Unpin for TokenRequestBody
impl UnwindSafe for TokenRequestBody
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)