pub struct AuditReviewContext {
pub attribution: AuditFindingAttribution,
pub gate_exemption: Option<AuditGateExemption>,
pub gate: Option<AuditReviewGate>,
}Expand description
Audit facts of one finding that an inline review comment shows.
The CodeClimate builder sets the attribution and the gate exemption. The
audit render sets gate from the gate policy of the run. The CodeClimate
wire shape does not carry these facts.
Fields§
§attribution: AuditFindingAttributionClass of the finding against the base snapshot.
gate_exemption: Option<AuditGateExemption>Reason why the finding never gates, when it has one.
gate: Option<AuditReviewGate>Effect of the finding on the gate. None when the gate policy of the
run is not known: the comment then shows only the attribution.
Implementations§
Trait Implementations§
Source§impl Clone for AuditReviewContext
impl Clone for AuditReviewContext
impl Copy for AuditReviewContext
Source§impl Debug for AuditReviewContext
impl Debug for AuditReviewContext
impl Eq for AuditReviewContext
Source§impl PartialEq for AuditReviewContext
impl PartialEq for AuditReviewContext
impl StructuralPartialEq for AuditReviewContext
Auto Trait Implementations§
impl Forget for AuditReviewContext
impl Freeze for AuditReviewContext
impl Move for AuditReviewContext
impl RefUnwindSafe for AuditReviewContext
impl Send for AuditReviewContext
impl Sync for AuditReviewContext
impl Unpin for AuditReviewContext
impl UnsafeUnpin for AuditReviewContext
impl UnwindSafe for AuditReviewContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.