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

Method with_files

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

Builder: set files to restore.

(mut self, files: I)

Source from the content-addressed store, hash-verified

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

Calls 1

into_iterMethod · 0.45