windmill-api 1.816.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.816.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 SetGitCredentialRequest {
    /// The repository the credential is for, and the key it is stored under. It is served for this repository and no other, so repointing a resource elsewhere cannot carry the token along.
    #[serde(rename = "repo_url")]
    pub repo_url: String,
    /// The access token, as pasted
    #[serde(rename = "token")]
    pub token: String,
}

impl SetGitCredentialRequest {
    pub fn new(repo_url: String, token: String) -> SetGitCredentialRequest {
        SetGitCredentialRequest {
            repo_url,
            token,
        }
    }
}