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 ==.impl StructuralPartialEq for Evaluation
Auto Trait Implementations§
impl Freeze for Evaluation
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more