pub struct PrCommentRenderInput<'a> {
pub command: &'a str,
pub provider: CiProvider,
pub issues: &'a [CiIssue],
pub marker_id: String,
pub max_comments: usize,
pub category_for_rule: &'a dyn Fn(&str) -> &'static str,
pub trailing_section: Option<&'a str>,
}Expand description
Inputs for rendering a sticky PR/MR summary comment.
Fields§
§command: &'a strFallow command the comment reports on, e.g. audit.
provider: CiProviderCI provider whose comment conventions apply.
issues: &'a [CiIssue]Findings to summarize, pre-sorted by severity and location.
marker_id: StringIdentity token embedded so reruns update the same sticky comment.
max_comments: usizeMaximum findings rendered in the comment body.
category_for_rule: &'a dyn Fn(&str) -> &'static strMaps a rule id to its display category label.
trailing_section: Option<&'a str>A Markdown section after the findings and before the footer. The CLI uses it for the unmatched config patterns.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PrCommentRenderInput<'a>
impl<'a> !Send for PrCommentRenderInput<'a>
impl<'a> !Sync for PrCommentRenderInput<'a>
impl<'a> !UnwindSafe for PrCommentRenderInput<'a>
impl<'a> Freeze for PrCommentRenderInput<'a>
impl<'a> Unpin for PrCommentRenderInput<'a>
impl<'a> UnsafeUnpin for PrCommentRenderInput<'a>
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