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)
| 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`], |
nothing calls this directly
no test coverage detected