Struct aws_sdk_codecommit::types::Evaluation
source · #[non_exhaustive]pub struct Evaluation {
pub approved: bool,
pub overridden: bool,
pub approval_rules_satisfied: Option<Vec<String>>,
pub approval_rules_not_satisfied: Option<Vec<String>>,
}Expand description
Returns information about the approval rules applied to a pull request and whether conditions have been met.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.approved: boolWhether the state of the pull request is approved.
overridden: boolWhether the approval rule requirements for the pull request have been overridden and no longer need to be met.
approval_rules_satisfied: Option<Vec<String>>The names of the approval rules that have had their conditions met.
approval_rules_not_satisfied: Option<Vec<String>>The names of the approval rules that have not had their conditions met.
Implementations§
source§impl Evaluation
impl Evaluation
sourcepub fn overridden(&self) -> bool
pub fn overridden(&self) -> bool
Whether the approval rule requirements for the pull request have been overridden and no longer need to be met.
sourcepub fn approval_rules_satisfied(&self) -> &[String]
pub fn approval_rules_satisfied(&self) -> &[String]
The names of the approval rules that have had their conditions met.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .approval_rules_satisfied.is_none().
sourcepub fn approval_rules_not_satisfied(&self) -> &[String]
pub fn approval_rules_not_satisfied(&self) -> &[String]
The names of the approval rules that have not had their conditions met.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .approval_rules_not_satisfied.is_none().
source§impl Evaluation
impl Evaluation
sourcepub fn builder() -> EvaluationBuilder
pub fn builder() -> EvaluationBuilder
Creates a new builder-style object to manufacture Evaluation.
Trait Implementations§
source§impl Clone for Evaluation
impl Clone for Evaluation
source§fn clone(&self) -> Evaluation
fn clone(&self) -> Evaluation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Evaluation
impl Debug for Evaluation
source§impl PartialEq for Evaluation
impl PartialEq for Evaluation
source§fn eq(&self, other: &Evaluation) -> bool
fn eq(&self, other: &Evaluation) -> bool
self and other values to be equal, and is used
by ==.