pub struct Environment {
pub name: String,
pub wait_timer: u32,
pub prevent_self_review: bool,
pub reviewers: Vec<EnvironmentReviewer>,
pub deployment_branch_policy: Option<DeploymentBranchPolicy>,
pub branch_policies: Vec<BranchPolicy>,
pub unknown_rules: Vec<String>,
}Expand description
A deployment environment, with its protection rules in the shape of the configuration.
Fields§
§name: StringThe environment’s name.
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.
deployment_branch_policy: Option<DeploymentBranchPolicy>Which branches may deploy. Null allows every branch.
branch_policies: Vec<BranchPolicy>The branch policies. Empty unless custom branch policies are on.
unknown_rules: Vec<String>The types of protection rules this model does not know.
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 From<EnvironmentResponse> for Environment
impl From<EnvironmentResponse> for Environment
Source§fn from(response: EnvironmentResponse) -> Self
fn from(response: EnvironmentResponse) -> Self
Converts to this type from the input type.
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.