clerk-rs 0.4.2

The official community Rust SDK for the Clerk API
Documentation
/*
 * Clerk Backend API
 *
 * The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
 *
 * The version of the OpenAPI document: v1
 * Contact: support@clerk.com
 * Generated by: https://openapi-generator.tech
 */

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateSignInTokenRequest {
	/// The ID of the user that can use the newly created sign in token
	#[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
	pub user_id: Option<String>,
	/// Optional parameter to specify the life duration of the sign in token in seconds. By default, the duration is 30 days.
	#[serde(rename = "expires_in_seconds", skip_serializing_if = "Option::is_none")]
	pub expires_in_seconds: Option<i64>,
}

impl CreateSignInTokenRequest {
	pub fn new() -> CreateSignInTokenRequest {
		CreateSignInTokenRequest {
			user_id: None,
			expires_in_seconds: None,
		}
	}
}