windmill-api 1.880.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.880.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TransferDraftsRequest {
    #[serde(rename = "target_workspace", skip_serializing_if = "Option::is_none")]
    pub target_workspace: Option<String>,
    #[serde(rename = "items")]
    pub items: Vec<models::DraftItemRef>,
    #[serde(rename = "remove_from_source", skip_serializing_if = "Option::is_none")]
    pub remove_from_source: Option<bool>,
    /// Overwrite the user's own drafts of `items` already in the target instead of returning them as conflicts.
    #[serde(rename = "replace_existing", skip_serializing_if = "Option::is_none")]
    pub replace_existing: Option<bool>,
}

impl TransferDraftsRequest {
    pub fn new(items: Vec<models::DraftItemRef>) -> TransferDraftsRequest {
        TransferDraftsRequest {
            target_workspace: None,
            items,
            remove_from_source: None,
            replace_existing: None,
        }
    }
}