clerk_sdk_rust_community/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.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct CreateSignInTokenRequest {
16 /// The ID of the user that can use the newly created sign in token
17 #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
18 pub user_id: Option<String>,
19 /// Optional parameter to specify the life duration of the sign in token in seconds. By default, the duration is 30 days.
20 #[serde(rename = "expires_in_seconds", skip_serializing_if = "Option::is_none")]
21 pub expires_in_seconds: Option<i32>,
22}
23
24impl CreateSignInTokenRequest {
25 pub fn new() -> CreateSignInTokenRequest {
26 CreateSignInTokenRequest {
27 user_id: None,
28 expires_in_seconds: None,
29 }
30 }
31}
32
33