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

Method new

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

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

(url: impl Into<String>)

Source from the content-addressed store, hash-verified

169 /// assert!(!remote.default);
170 /// ```
171 pub fn new(url: impl Into<String>) -> Self {
172 Self {
173 url: url.into(),
174 default: false,
175 }
176 }
177
178 /// Create a new remote entry marked as the default.
179 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected