(
code: &str,
severity: &str,
focus: impl Into<String>,
message: impl Into<String>,
)
| 249 | |
| 250 | impl Finding { |
| 251 | pub fn new( |
| 252 | code: &str, |
| 253 | severity: &str, |
| 254 | focus: impl Into<String>, |
| 255 | message: impl Into<String>, |
| 256 | ) -> Self { |
| 257 | Finding { |
| 258 | code: code.to_string(), |
| 259 | severity: severity.to_string(), |
| 260 | focus: focus.into(), |
| 261 | message: message.into(), |
| 262 | suggested_query: None, |
| 263 | remedy: None, |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | pub fn with_query(mut self, q: impl Into<String>) -> Self { |
| 268 | self.suggested_query = Some(q.into()); |
nothing calls this directly
no outgoing calls
no test coverage detected