MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus / decode

Method decode

packages/fullstack/src/encoding.rs:34–36  ·  view source on GitHub ↗
(bytes: Bytes)

Source from the content-addressed store, hash-verified

32 }
33
34 fn decode<O: DeserializeOwned>(bytes: Bytes) -> Option<O> {
35 serde_json::from_slice(&bytes).ok()
36 }
37}
38
39pub struct CborEncoding;

Callers 5

load_image_from_pathFunction · 0.80
process_imageFunction · 0.80
constructorMethod · 0.80
from_strMethod · 0.80

Calls 2

okMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected