clerk_rs/models/
create_sign_in_token_request.rs

1/*
2 * Clerk Backend API
3 *
4 * The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
5 *
6 * The version of the OpenAPI document: v1
7 * Contact: support@clerk.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct CreateSignInTokenRequest {
13	/// The ID of the user that can use the newly created sign in token
14	#[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
15	pub user_id: Option<String>,
16	/// Optional parameter to specify the life duration of the sign in token in seconds. By default, the duration is 30 days.
17	#[serde(rename = "expires_in_seconds", skip_serializing_if = "Option::is_none")]
18	pub expires_in_seconds: Option<i64>,
19}
20
21impl CreateSignInTokenRequest {
22	pub fn new() -> CreateSignInTokenRequest {
23		CreateSignInTokenRequest {
24			user_id: None,
25			expires_in_seconds: None,
26		}
27	}
28}