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

Method with_files

atomic-cli/src/commands/record/mod.rs:294–301  ·  view source on GitHub ↗

Builder: set files to record.

(mut self, files: I)

Source from the content-addressed store, hash-verified

292
293 /// Builder: set files to record.
294 pub fn with_files<I, S>(mut self, files: I) -> Self
295 where
296 I: IntoIterator<Item = S>,
297 S: Into<String>,
298 {
299 self.files = files.into_iter().map(|s| s.into()).collect();
300 self
301 }
302
303 /// Builder: set the author.
304 pub fn with_author(mut self, author: impl Into<String>) -> Self {

Calls 2

collectMethod · 0.45
into_iterMethod · 0.45