clerk-sdk-rust-community 1.0.4

The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
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.dev
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Default, 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<i32>,
}

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