Skip to main content

windmill_api/models/
remote_deploy_connection.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 RemoteDeployConnection {
16    /// identity the stored token has on the remote instance
17    #[serde(rename = "remote_email")]
18    pub remote_email: String,
19    /// goes in every proxy URL, `/w/{workspace}/remote_deploy/proxy/{proxy_key}/{route}`
20    #[serde(rename = "proxy_key")]
21    pub proxy_key: String,
22    #[serde(rename = "connected_at")]
23    pub connected_at: String,
24}
25
26impl RemoteDeployConnection {
27    pub fn new(remote_email: String, proxy_key: String, connected_at: String) -> RemoteDeployConnection {
28        RemoteDeployConnection {
29            remote_email,
30            proxy_key,
31            connected_at,
32        }
33    }
34}
35