Skip to main content

from_wire

Function from_wire 

Source
pub fn from_wire(v: &Value) -> Result<Manifest, ManifestError>
Expand description

A manifest read from its wire form, as macula_manifest’s from_wire/1 reads it. One that names another hash algorithm than sha384 (as text or bytes), whose chunks do not describe its content whole, or holding a number outside its field, is refused. Nothing is allocated from the size or count it claims: only the chunks it lists are read.