Skip to main content

late/models/
update_workflow_request.rs

1/*
2 * Zernio API
3 *
4 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5 *
6 * The version of the OpenAPI document: 1.0.4
7 * Contact: support@zernio.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct UpdateWorkflowRequest {
16    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
17    pub name: Option<String>,
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20    #[serde(rename = "nodes", skip_serializing_if = "Option::is_none")]
21    pub nodes: Option<Vec<models::WorkflowNode>>,
22    #[serde(rename = "edges", skip_serializing_if = "Option::is_none")]
23    pub edges: Option<Vec<models::WorkflowEdge>>,
24    #[serde(
25        rename = "entryNodeId",
26        default,
27        with = "::serde_with::rust::double_option",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub entry_node_id: Option<Option<String>>,
31    /// Reassign the workflow to a different `SocialAccount`. `platform` and `profileId` are derived server-side from the new account (the client never sends them directly). The account must belong to the caller's workspace and be on a workflow-supported platform (whatsapp, instagram, facebook, telegram, twitter, bluesky, reddit). Changing this triggers a graph revalidation against the new platform.
32    #[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
33    pub account_id: Option<String>,
34}
35
36impl UpdateWorkflowRequest {
37    pub fn new() -> UpdateWorkflowRequest {
38        UpdateWorkflowRequest {
39            name: None,
40            description: None,
41            nodes: None,
42            edges: None,
43            entry_node_id: None,
44            account_id: None,
45        }
46    }
47}