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

Method from_persisted

src/config.rs:147–155  ·  view source on GitHub ↗

Wrap a [`PersistedConfig`] with placeholder runtime values. The caller is expected to invoke [`Self::resolve_selected_profile`] to populate them before exposing the result.

(persisted: PersistedConfig)

Source from the content-addressed store, hash-verified

145 /// caller is expected to invoke [`Self::resolve_selected_profile`]
146 /// to populate them before exposing the result.
147 fn from_persisted(persisted: PersistedConfig) -> Self {
148 Self {
149 persisted,
150 auth: AuthConfig::default(),
151 api_url: default_api_url(),
152 upload_url: default_upload_url(),
153 selected_profile: default_profile_name(),
154 }
155 }
156}
157
158/// Fold a [`RawConfig`] into the canonical [`PersistedConfig`],

Callers

nothing calls this directly

Calls 3

default_api_urlFunction · 0.85
default_upload_urlFunction · 0.85
default_profile_nameFunction · 0.85

Tested by

no test coverage detected