clerk-rs 0.4.2

The official community Rust SDK for the Clerk API
Documentation
/*
 * Clerk Backend API
 *
 * The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
 *
 * The version of the OpenAPI document: v1
 * Contact: support@clerk.com
 * Generated by: https://openapi-generator.tech
 */

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateSamlConnectionRequest {
	/// The name of the new SAML Connection
	#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
	pub name: Option<String>,
	/// The domain to use for the new SAML Connection
	#[serde(rename = "domain", skip_serializing_if = "Option::is_none")]
	pub domain: Option<String>,
	/// The entity id as provided by the IdP
	#[serde(rename = "idp_entity_id", skip_serializing_if = "Option::is_none")]
	pub idp_entity_id: Option<String>,
	/// The SSO url as provided by the IdP
	#[serde(rename = "idp_sso_url", skip_serializing_if = "Option::is_none")]
	pub idp_sso_url: Option<String>,
	/// The x509 certificated as provided by the IdP
	#[serde(rename = "idp_certificate", skip_serializing_if = "Option::is_none")]
	pub idp_certificate: Option<String>,
	/// Activate or de-activate the SAML Connection
	#[serde(rename = "active", skip_serializing_if = "Option::is_none")]
	pub active: Option<bool>,
	/// Controls whether to update the user's attributes in each sign-in
	#[serde(rename = "sync_user_attributes", skip_serializing_if = "Option::is_none")]
	pub sync_user_attributes: Option<bool>,
}

impl UpdateSamlConnectionRequest {
	pub fn new() -> UpdateSamlConnectionRequest {
		UpdateSamlConnectionRequest {
			name: None,
			domain: None,
			idp_entity_id: None,
			idp_sso_url: None,
			idp_certificate: None,
			active: None,
			sync_user_attributes: None,
		}
	}
}