(&self)
| 233 | } |
| 234 | |
| 235 | pub fn get_text(&self) -> String { |
| 236 | self.parts |
| 237 | .iter() |
| 238 | .filter_map(|p| match &p.part_type { |
| 239 | PartType::Text { text, .. } => Some(text.clone()), |
| 240 | _ => None, |
| 241 | }) |
| 242 | .collect::<Vec<_>>() |
| 243 | .join("") |
| 244 | } |
| 245 | |
| 246 | pub fn get_reasoning(&self) -> String { |
| 247 | self.parts |
no test coverage detected