Skip to main content

ephemeris_forge_github/api/request/
environments.rs

1use facet::Facet;
2
3use crate::{DeploymentBranchPolicy, EnvironmentReviewer};
4
5/// The body that creates an environment or replaces its settings.
6#[derive(Clone, Debug, Eq, Facet, PartialEq)]
7pub struct EnvironmentBody {
8    /// Minutes to wait before a deployment starts.
9    pub wait_timer: u32,
10    /// Whether the person who started a deployment cannot approve it.
11    pub prevent_self_review: bool,
12    /// The users and teams that approve deployments.
13    pub reviewers: Vec<EnvironmentReviewer>,
14    /// Which branches may deploy. Null allows every branch.
15    pub deployment_branch_policy: Option<DeploymentBranchPolicy>,
16}