clerk_rs/models/
deleted_object.rs1#[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}