clerk_rs/models/
deleted_object.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 DeletedObject {
13	#[serde(rename = "object")]
14	pub object: String,
15	#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
16	pub id: Option<String>,
17	#[serde(rename = "slug", skip_serializing_if = "Option::is_none")]
18	pub slug: Option<String>,
19	#[serde(rename = "deleted")]
20	pub deleted: bool,
21}
22
23impl DeletedObject {
24	pub fn new(object: String, deleted: bool) -> DeletedObject {
25		DeletedObject {
26			object,
27			id: None,
28			slug: None,
29			deleted,
30		}
31	}
32}