pub struct PendingDeployment {
pub environment: Box<PendingDeploymentEnvironment>,
pub wait_timer: i32,
pub wait_timer_started_at: Option<String>,
pub current_user_can_approve: bool,
pub reviewers: Vec<PendingDeploymentReviewersInner>,
}
Expand description
PendingDeployment : Details of a deployment that is waiting for protection rules to pass
Fields§
§environment: Box<PendingDeploymentEnvironment>
§wait_timer: i32
The set duration of the wait timer
wait_timer_started_at: Option<String>
The time that the wait timer began.
current_user_can_approve: bool
Whether the currently authenticated user can approve the deployment
reviewers: 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§
Source§impl PendingDeployment
impl PendingDeployment
Sourcepub fn new(
environment: PendingDeploymentEnvironment,
wait_timer: i32,
wait_timer_started_at: Option<String>,
current_user_can_approve: bool,
reviewers: Vec<PendingDeploymentReviewersInner>,
) -> PendingDeployment
pub fn new( environment: PendingDeploymentEnvironment, wait_timer: i32, wait_timer_started_at: Option<String>, current_user_can_approve: bool, reviewers: Vec<PendingDeploymentReviewersInner>, ) -> PendingDeployment
Details of a deployment that is waiting for protection rules to pass
Trait Implementations§
Source§impl Clone for PendingDeployment
impl Clone for PendingDeployment
Source§fn clone(&self) -> PendingDeployment
fn clone(&self) -> PendingDeployment
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 Debug for PendingDeployment
impl Debug for PendingDeployment
Source§impl Default for PendingDeployment
impl Default for PendingDeployment
Source§fn default() -> PendingDeployment
fn default() -> PendingDeployment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PendingDeployment
impl<'de> Deserialize<'de> for PendingDeployment
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 PendingDeployment
impl PartialEq for PendingDeployment
Source§impl Serialize for PendingDeployment
impl Serialize for PendingDeployment
impl StructuralPartialEq for PendingDeployment
Auto Trait Implementations§
impl Freeze for PendingDeployment
impl RefUnwindSafe for PendingDeployment
impl Send for PendingDeployment
impl Sync for PendingDeployment
impl Unpin for PendingDeployment
impl UnwindSafe for PendingDeployment
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