pub fn read(id: &str, ims: &Image) -> Result<ImageSessionMetadata, MantaError>Expand description
Read the CFS-derived provenance metadata back from an IMS image.
id must match ims.id; this is a guard so callers can’t pass a
mismatched image by accident.
§Errors
MantaError::NotFoundifims.idisNoneor does not equalid.MantaError::MissingFieldif any of the threemanta.image_session.*keys is absent fromims.metadata.MantaError::SerdeErrorif thegroupsvalue is not a valid JSON array of strings.