fusionauth_rust_client/models/
form.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Form {
17 #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
18 pub data: Option<std::collections::HashMap<String, serde_json::Value>>,
19 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
20 pub id: Option<uuid::Uuid>,
21 #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
23 pub insert_instant: Option<i64>,
24 #[serde(rename = "lastUpdateInstant", skip_serializing_if = "Option::is_none")]
26 pub last_update_instant: Option<i64>,
27 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
28 pub name: Option<String>,
29 #[serde(rename = "steps", skip_serializing_if = "Option::is_none")]
30 pub steps: Option<Vec<models::FormStep>>,
31 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
32 pub r#type: Option<models::FormType>,
33}
34
35impl Form {
36 pub fn new() -> Form {
38 Form {
39 data: None,
40 id: None,
41 insert_instant: None,
42 last_update_instant: None,
43 name: None,
44 steps: None,
45 r#type: None,
46 }
47 }
48}
49