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

Method with_files

atomic-cli/src/commands/restore.rs:135–142  ·  view source on GitHub ↗

Builder: set files to restore.

(mut self, files: I)

Source from the content-addressed store, hash-verified

133
134 /// Builder: set files to restore.
135 pub fn with_files<I, S>(mut self, files: I) -> Self
136 where
137 I: IntoIterator<Item = S>,
138 S: Into<String>,
139 {
140 self.files = files.into_iter().map(|s| s.into()).collect();
141 self
142 }
143
144 /// Builder: set the dry-run flag.
145 pub fn with_dry_run(mut self, dry_run: bool) -> Self {

Calls 2

collectMethod · 0.45
into_iterMethod · 0.45