clerk_sdk_rust_community/models/
create_demo_instance_200_response.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 CreateDemoInstance200Response {
16    #[serde(rename = "object", skip_serializing_if = "Option::is_none")]
17    pub object: Option<Object>,
18    #[serde(rename = "frontend_api_key", skip_serializing_if = "Option::is_none")]
19    pub frontend_api_key: Option<String>,
20    #[serde(rename = "backend_api_key", skip_serializing_if = "Option::is_none")]
21    pub backend_api_key: Option<String>,
22    /// The public key that can be used to verify the session tokens of the created instance.
23    #[serde(rename = "jwt_verification_key", skip_serializing_if = "Option::is_none")]
24    pub jwt_verification_key: Option<String>,
25    /// The URL of the hosted Accounts Portal of the created instance.
26    #[serde(rename = "accounts_url", skip_serializing_if = "Option::is_none")]
27    pub accounts_url: Option<String>,
28}
29
30impl CreateDemoInstance200Response {
31    pub fn new() -> CreateDemoInstance200Response {
32        CreateDemoInstance200Response {
33            object: None,
34            frontend_api_key: None,
35            backend_api_key: None,
36            jwt_verification_key: None,
37            accounts_url: None,
38        }
39    }
40}
41
42/// 
43#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
44pub enum Object {
45    #[serde(rename = "demo_dev_instance")]
46    DemoDevInstance,
47}
48
49impl Default for Object {
50    fn default() -> Object {
51        Self::DemoDevInstance
52    }
53}
54