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

Method with_default

atomic-repository/src/remote.rs:210–213  ·  view source on GitHub ↗

Set whether this remote is the default. # Example ```rust use atomic_repository::remote::RemoteEntry; let remote = RemoteEntry::new("https://example.com/repo") .with_default(true); assert!(remote.default); ```

(mut self, default: bool)

Source from the content-addressed store, hash-verified

208 /// assert!(remote.default);
209 /// ```
210 pub fn with_default(mut self, default: bool) -> Self {
211 self.default = default;
212 self
213 }
214
215 /// Check if the URL appears valid.
216 ///

Callers 1

Calls

no outgoing calls

Tested by 1