pub struct Environment {
pub wait_timer: u32,
pub prevent_self_review: bool,
pub reviewers: Vec<EnvironmentReviewer>,
pub deployment_branch_policy: Option<DeploymentBranchPolicy>,
pub branch_policies: Vec<BranchPolicy>,
}Expand description
A deployment environment.
Fields§
§wait_timer: u32Minutes to wait before a deployment starts.
prevent_self_review: boolWhether the person who started a deployment cannot approve it.
reviewers: Vec<EnvironmentReviewer>The users and teams that approve deployments. Compared as a set.
deployment_branch_policy: Option<DeploymentBranchPolicy>Which branches may deploy. Null allows every branch.
branch_policies: Vec<BranchPolicy>The name patterns that may deploy. Compared as a set.
Implementations§
Source§impl Environment
impl Environment
fn validate(&self, name: &EnvironmentName) -> Result<(), ConfigError>
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Environment
impl Debug for Environment
impl Eq for Environment
Source§impl<'ʄ> Facet<'ʄ> for Environment
impl<'ʄ> Facet<'ʄ> for Environment
Source§impl PartialEq for Environment
impl PartialEq for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnsafeUnpin for Environment
impl UnwindSafe for Environment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.