/*
 * 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, Default, Serialize, Deserialize)]
pub struct InstanceRestrictions {
	/// String representing the object's type. Objects of the same type share the same value.
	#[serde(rename = "object", skip_serializing_if = "Option::is_none")]
	pub object: Option<Object>,
	#[serde(rename = "allowlist", skip_serializing_if = "Option::is_none")]
	pub allowlist: Option<bool>,
	#[serde(rename = "blocklist", skip_serializing_if = "Option::is_none")]
	pub blocklist: Option<bool>,
}

impl InstanceRestrictions {
	pub fn new() -> InstanceRestrictions {
		InstanceRestrictions {
			object: None,
			allowlist: None,
			blocklist: None,
		}
	}
}

/// String representing the object's type. Objects of the same type share the same value.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Object {
	#[serde(rename = "instance_restrictions")]
	InstanceRestrictions,
}

impl Default for Object {
	fn default() -> Object {
		Self::InstanceRestrictions
	}
}
