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

Method new_default

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

Create a new remote entry marked as the default. # Arguments `url` - The URL of the remote repository # Example ```rust use atomic_repository::remote::RemoteEntry; let remote = RemoteEntry::new_default("https://api.example.com/repo"); assert!(remote.default); ```

(url: impl Into<String>)

Source from the content-addressed store, hash-verified

190 /// assert!(remote.default);
191 /// ```
192 pub fn new_default(url: impl Into<String>) -> Self {
193 Self {
194 url: url.into(),
195 default: true,
196 }
197 }
198
199 /// Set whether this remote is the default.
200 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected