clerk_sdk_rust_community/models/verify_session_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 VerifySessionRequest {
16 /// The JWT that is sent via the `__session` cookie from your frontend. Note: this JWT must be associated with the supplied session ID.
17 #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
18 pub token: Option<String>,
19}
20
21impl VerifySessionRequest {
22 pub fn new() -> VerifySessionRequest {
23 VerifySessionRequest {
24 token: None,
25 }
26 }
27}
28
29