clerk_rs/models/
create_saml_connection_request.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct CreateSamlConnectionRequest {
13 #[serde(rename = "name")]
15 pub name: String,
16 #[serde(rename = "domain")]
18 pub domain: String,
19 #[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 #[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 #[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}