clerk_rs/models/update_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 UpdateDomainRequest {
13 /// The new domain name. For development instances, can contain the port, i.e `myhostname:3000`. For production instances, must be a valid FQDN, i.e `mysite.com`. Cannot contain protocol scheme.
14 #[serde(
15 rename = "name",
16 default,
17 with = "::serde_with::rust::double_option",
18 skip_serializing_if = "Option::is_none"
19 )]
20 pub name: Option<Option<String>>,
21 /// The full URL of the proxy that will forward requests to Clerk's Frontend API. Can only be updated for production instances.
22 #[serde(
23 rename = "proxy_url",
24 default,
25 with = "::serde_with::rust::double_option",
26 skip_serializing_if = "Option::is_none"
27 )]
28 pub proxy_url: Option<Option<String>>,
29}
30
31impl UpdateDomainRequest {
32 pub fn new() -> UpdateDomainRequest {
33 UpdateDomainRequest { name: None, proxy_url: None }
34 }
35}