MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / new

Method new

atomic-repository/src/triage/model.rs:251–265  ·  view source on GitHub ↗
(
        code: &str,
        severity: &str,
        focus: impl Into<String>,
        message: impl Into<String>,
    )

Source from the content-addressed store, hash-verified

249
250impl 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());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected