gh_workflow/
environment.rs

1//!
2//! Environment types for GitHub workflow deployment environments.
3
4use derive_setters::Setters;
5use serde::{Deserialize, Serialize};
6
7/// Represents an environment for jobs.
8#[derive(Debug, Setters, Serialize, Deserialize, Clone, Default, PartialEq, Eq)]
9#[serde(rename_all = "kebab-case")]
10#[setters(strip_option, into)]
11pub struct Environment {
12    /// The name of the environment.
13    pub name: String,
14
15    /// The URL associated with the environment.
16    #[serde(skip_serializing_if = "Option::is_none")]
17    pub url: Option<String>,
18}