MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / persist

Method persist

src/config.rs:270–272  ·  view source on GitHub ↗

Persist the canonical on-disk configuration. Runtime resolved fields (auth, api_url, upload_url) are not written — only what is in [`PersistedConfig`].

(&self, config_name: Option<&str>)

Source from the content-addressed store, hash-verified

268 /// fields (auth, api_url, upload_url) are not written — only what
269 /// is in [`PersistedConfig`].
270 pub fn persist(&self, config_name: Option<&str>) -> Result<()> {
271 write_persisted(&self.persisted, config_name)
272 }
273
274 pub fn selected_profile_name(&self) -> &str {
275 &self.selected_profile

Callers 2

setFunction · 0.80
loginFunction · 0.80

Calls 1

write_persistedFunction · 0.85

Tested by

no test coverage detected