clerk_rs/models/add_domain_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.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct AddDomainRequest {
13 /// The new domain name. Can contain the port for development instances.
14 #[serde(rename = "name")]
15 pub name: String,
16 /// Marks the new domain as satellite. Only `true` is accepted at the moment.
17 #[serde(rename = "is_satellite")]
18 pub is_satellite: bool,
19 /// The full URL of the proxy which will forward requests to the Clerk Frontend API for this domain. Applicable only to production instances.
20 #[serde(rename = "proxy_url", skip_serializing_if = "Option::is_none")]
21 pub proxy_url: Option<String>,
22}
23
24impl AddDomainRequest {
25 pub fn new(name: String, is_satellite: bool) -> AddDomainRequest {
26 AddDomainRequest {
27 name,
28 is_satellite,
29 proxy_url: None,
30 }
31 }
32}