fallow_output/
pr_comment_envelope.rs1use serde::{Deserialize, Serialize};
4
5#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
7pub struct PrCommentEnvelope {
8 pub marker_id: String,
9 pub body: String,
10 pub is_clean: bool,
11 pub details_url: Option<String>,
12 pub check_summary: Option<String>,
13 pub truncation: PrCommentTruncation,
14}
15
16impl PrCommentEnvelope {
17 #[must_use]
18 pub fn body(&self) -> &str {
19 &self.body
20 }
21}
22
23#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
24pub struct PrCommentTruncation {
25 pub truncated: bool,
26 pub shown_findings: usize,
27 pub total_findings: usize,
28}