Skip to main content

windmill_api/models/
remote_deploy_target.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.817.0
7 * Contact: contact@windmill.dev
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 RemoteDeployTarget {
16    /// root URL of the remote Windmill instance, without /api
17    #[serde(rename = "base_url")]
18    pub base_url: String,
19    /// workspace on the remote instance that deploys land in
20    #[serde(rename = "workspace_id")]
21    pub workspace_id: String,
22}
23
24impl RemoteDeployTarget {
25    pub fn new(base_url: String, workspace_id: String) -> RemoteDeployTarget {
26        RemoteDeployTarget {
27            base_url,
28            workspace_id,
29        }
30    }
31}
32