mattermost_client/openapi/models/
create_playbook_run_from_dialog_request_submission.rs

1/*
2 * Mattermost API Reference
3 *
4 * There is also a work-in-progress [Postman API reference](https://documenter.getpostman.com/view/4508214/RW8FERUn).
5 *
6 * The version of the OpenAPI document: 4.0.0
7 * Contact: feedback@mattermost.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// CreatePlaybookRunFromDialogRequestSubmission : Map of the dialog fields to their values
12
13#[derive(Clone, Debug, PartialEq, Default, serde::Serialize, serde::Deserialize)]
14pub struct CreatePlaybookRunFromDialogRequestSubmission {
15    /// ID of the playbook to create the playbook run from.
16    #[serde(rename = "playbookID")]
17    pub playbook_id: String,
18    /// The name of the playbook run to be created.
19    #[serde(rename = "playbookRunName")]
20    pub playbook_run_name: String,
21    /// An optional description of the playbook run.
22    #[serde(
23        rename = "playbookRunDescription",
24        skip_serializing_if = "Option::is_none"
25    )]
26    pub playbook_run_description: Option<String>,
27}
28
29impl CreatePlaybookRunFromDialogRequestSubmission {
30    /// Map of the dialog fields to their values
31    pub fn new(
32        playbook_id: String,
33        playbook_run_name: String,
34    ) -> CreatePlaybookRunFromDialogRequestSubmission {
35        CreatePlaybookRunFromDialogRequestSubmission {
36            playbook_id,
37            playbook_run_name,
38            playbook_run_description: None,
39        }
40    }
41}