Skip to main content

extract

Function extract 

Source
pub fn extract(html: &[u8]) -> Result<Manifest, Error>
Expand description

Locate the document’s single C2PA manifest association and decode it.

Fails with Error::NotFound when there is none, Error::MultipleManifests when there is more than one, and Error::MalformedElement when the one element present yields no Manifest Store. All three mean “no manifests located” to a validator; see Error::is_no_manifest_located.