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

Method with_warning

atomic-repository/src/archive.rs:619–622  ·  view source on GitHub ↗

Add a warning.

(mut self, warning: impl Into<String>)

Source from the content-addressed store, hash-verified

617
618 /// Add a warning.
619 pub fn with_warning(mut self, warning: impl Into<String>) -> Self {
620 self.warnings.push(warning.into());
621 self
622 }
623
624 /// Check if there were warnings.
625 pub fn has_warnings(&self) -> bool {

Callers 1

Calls 1

pushMethod · 0.45

Tested by 1