clerk_rs/models/
create_saml_connection_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 CreateSamlConnectionRequest {
13	/// The name to use as a label for this SAML Connection
14	#[serde(rename = "name")]
15	pub name: String,
16	/// The domain of your organization. Sign in flows using an email with this domain, will use this SAML Connection.
17	#[serde(rename = "domain")]
18	pub domain: String,
19	/// The Entity ID as provided by the IdP
20	#[serde(
21		rename = "idp_entity_id",
22		default,
23		with = "::serde_with::rust::double_option",
24		skip_serializing_if = "Option::is_none"
25	)]
26	pub idp_entity_id: Option<Option<String>>,
27	/// The Single-Sign On URL as provided by the IdP
28	#[serde(
29		rename = "idp_sso_url",
30		default,
31		with = "::serde_with::rust::double_option",
32		skip_serializing_if = "Option::is_none"
33	)]
34	pub idp_sso_url: Option<Option<String>>,
35	/// The X.509 certificate as provided by the IdP
36	#[serde(
37		rename = "idp_certificate",
38		default,
39		with = "::serde_with::rust::double_option",
40		skip_serializing_if = "Option::is_none"
41	)]
42	pub idp_certificate: Option<Option<String>>,
43}
44
45impl CreateSamlConnectionRequest {
46	pub fn new(name: String, domain: String) -> CreateSamlConnectionRequest {
47		CreateSamlConnectionRequest {
48			name,
49			domain,
50			idp_entity_id: None,
51			idp_sso_url: None,
52			idp_certificate: None,
53		}
54	}
55}