Fetch and validate one view's manifest from the remote. Returns `Ok(None)` if the remote does not have the view.
(
&self,
remote: &HttpRemote,
view: &str,
)
| 344 | /// |
| 345 | /// Returns `Ok(None)` if the remote does not have the view. |
| 346 | async fn fetch_view_manifest( |
| 347 | &self, |
| 348 | remote: &HttpRemote, |
| 349 | view: &str, |
| 350 | ) -> CliResult<Option<ViewManifest>> { |
| 351 | match remote.get_view_manifest(view).await { |
| 352 | Ok(Some(text)) => parse_remote_manifest(view, &text, &self.url).map(Some), |
| 353 | Ok(None) => Ok(None), |
| 354 | Err(e) => Err(self.manifest_fetch_error(e)), |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | /// Fetch the requested view's manifest and walk its parent chain up to |
| 359 | /// the root, returning the manifests in root→leaf apply order. |
no test coverage detected