pub struct EnvironmentProtectionRulesInner {
pub id: i32,
pub node_id: String,
pub type: String,
pub wait_timer: Option<i32>,
pub prevent_self_review: Option<bool>,
pub reviewers: Option<Vec<PendingDeploymentReviewersInner>>,
}
Fields§
§id: i32
§node_id: String
§type: String
§wait_timer: Option<i32>
The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days).
prevent_self_review: Option<bool>
Whether deployments to this environment can be approved by the user who created the deployment.
reviewers: Option<Vec<PendingDeploymentReviewersInner>>
The people or teams that may approve jobs that reference the environment. You can list up to six users or teams as reviewers. The reviewers must have at least read access to the repository. Only one of the required reviewers needs to approve the job for it to proceed.
Implementations§
Trait Implementations§
Source§impl Clone for EnvironmentProtectionRulesInner
impl Clone for EnvironmentProtectionRulesInner
Source§fn clone(&self) -> EnvironmentProtectionRulesInner
fn clone(&self) -> EnvironmentProtectionRulesInner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for EnvironmentProtectionRulesInner
impl Default for EnvironmentProtectionRulesInner
Source§fn default() -> EnvironmentProtectionRulesInner
fn default() -> EnvironmentProtectionRulesInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnvironmentProtectionRulesInner
impl<'de> Deserialize<'de> for EnvironmentProtectionRulesInner
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EnvironmentProtectionRulesInner
impl PartialEq for EnvironmentProtectionRulesInner
Source§fn eq(&self, other: &EnvironmentProtectionRulesInner) -> bool
fn eq(&self, other: &EnvironmentProtectionRulesInner) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for EnvironmentProtectionRulesInner
Auto Trait Implementations§
impl Freeze for EnvironmentProtectionRulesInner
impl RefUnwindSafe for EnvironmentProtectionRulesInner
impl Send for EnvironmentProtectionRulesInner
impl Sync for EnvironmentProtectionRulesInner
impl Unpin for EnvironmentProtectionRulesInner
impl UnwindSafe for EnvironmentProtectionRulesInner
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