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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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) -> Option<&[String]>
pub fn approval_rules_satisfied(&self) -> Option<&[String]>
The names of the approval rules that have had their conditions met.
sourcepub fn approval_rules_not_satisfied(&self) -> Option<&[String]>
pub fn approval_rules_not_satisfied(&self) -> Option<&[String]>
The names of the approval rules that have not had their conditions met.
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
Returns a copy 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 Evaluation
impl Debug for Evaluation
source§impl PartialEq<Evaluation> for Evaluation
impl PartialEq<Evaluation> for Evaluation
source§fn eq(&self, other: &Evaluation) -> bool
fn eq(&self, other: &Evaluation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for Evaluation
Auto Trait Implementations§
impl RefUnwindSafe for Evaluation
impl Send for Evaluation
impl Sync for Evaluation
impl Unpin for Evaluation
impl UnwindSafe for Evaluation
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