1 <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A data format that can deserialize any data structure supported by Serde."><title>Deserializer in bdk_chain::bitcoin::hashes::serde - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-46132b98.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="bdk_chain" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (4ba4ac612 2024-12-18)" data-channel="nightly" data-search-js="search-036cda7a.js" data-settings-js="settings-0f613d39.js" ><script src="../../../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../../../bdk_chain/index.html"><img src="https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../../bdk_chain/index.html"><img src="https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png" alt="logo"></a><h2><a href="../../../../bdk_chain/index.html">bdk_<wbr>chain</a><span class="version">0.21.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Deserializer</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#lifetime" title="Lifetime">Lifetime</a></li><li><a href="#example-implementation" title="Example implementation">Example implementation</a></li></ul><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Error" title="Error">Error</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.deserialize_any" title="deserialize_any">deserialize_any</a></li><li><a href="#tymethod.deserialize_bool" title="deserialize_bool">deserialize_bool</a></li><li><a href="#tymethod.deserialize_byte_buf" title="deserialize_byte_buf">deserialize_byte_buf</a></li><li><a href="#tymethod.deserialize_bytes" title="deserialize_bytes">deserialize_bytes</a></li><li><a href="#tymethod.deserialize_char" title="deserialize_char">deserialize_char</a></li><li><a href="#tymethod.deserialize_enum" title="deserialize_enum">deserialize_enum</a></li><li><a href="#tymethod.deserialize_f32" title="deserialize_f32">deserialize_f32</a></li><li><a href="#tymethod.deserialize_f64" title="deserialize_f64">deserialize_f64</a></li><li><a href="#tymethod.deserialize_i16" title="deserialize_i16">deserialize_i16</a></li><li><a href="#tymethod.deserialize_i32" title="deserialize_i32">deserialize_i32</a></li><li><a href="#tymethod.deserialize_i64" title="deserialize_i64">deserialize_i64</a></li><li><a href="#tymethod.deserialize_i8" title="deserialize_i8">deserialize_i8</a></li><li><a href="#tymethod.deserialize_identifier" title="deserialize_identifier">deserialize_identifier</a></li><li><a href="#tymethod.deserialize_ignored_any" title="deserialize_ignored_any">deserialize_ignored_any</a></li><li><a href="#tymethod.deserialize_map" title="deserialize_map">deserialize_map</a></li><li><a href="#tymethod.deserialize_newtype_struct" title="deserialize_newtype_struct">deserialize_newtype_struct</a></li><li><a href="#tymethod.deserialize_option" title="deserialize_option">deserialize_option</a></li><li><a href="#tymethod.deserialize_seq" title="deserialize_seq">deserialize_seq</a></li><li><a href="#tymethod.deserialize_str" title="deserialize_str">deserialize_str</a></li><li><a href="#tymethod.deserialize_string" title="deserialize_string">deserialize_string</a></li><li><a href="#tymethod.deserialize_struct" title="deserialize_struct">deserialize_struct</a></li><li><a href="#tymethod.deserialize_tuple" title="deserialize_tuple">deserialize_tuple</a></li><li><a href="#tymethod.deserialize_tuple_struct" title="deserialize_tuple_struct">deserialize_tuple_struct</a></li><li><a href="#tymethod.deserialize_u16" title="deserialize_u16">deserialize_u16</a></li><li><a href="#tymethod.deserialize_u32" title="deserialize_u32">deserialize_u32</a></li><li><a href="#tymethod.deserialize_u64" title="deserialize_u64">deserialize_u64</a></li><li><a href="#tymethod.deserialize_u8" title="deserialize_u8">deserialize_u8</a></li><li><a href="#tymethod.deserialize_unit" title="deserialize_unit">deserialize_unit</a></li><li><a href="#tymethod.deserialize_unit_struct" title="deserialize_unit_struct">deserialize_unit_struct</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.deserialize_i128" title="deserialize_i128">deserialize_i128</a></li><li><a href="#method.deserialize_u128" title="deserialize_u128">deserialize_u128</a></li><li><a href="#method.is_human_readable" title="is_human_readable">is_human_readable</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In bdk_<wbr>chain::<wbr>bitcoin::<wbr>hashes::<wbr>serde</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../../../index.html">bdk_chain</a>::<wbr><a href="../../index.html">bitcoin</a>::<wbr><a href="../index.html">hashes</a>::<wbr><a href="index.html">serde</a></span><h1>Trait <span class="trait">Deserializer</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#914">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Deserializer<'de>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
2 type <a href="#associatedtype.Error" class="associatedtype">Error</a>: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>;
4 <details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 32 methods</span></summary> // Required methods
5 fn <a href="#tymethod.deserialize_any" class="fn">deserialize_any</a><V>(
8 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
9 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
10 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_bool" class="fn">deserialize_bool</a><V>(
13 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
14 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
15 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_i8" class="fn">deserialize_i8</a><V>(
18 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
19 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
20 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_i16" class="fn">deserialize_i16</a><V>(
23 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
24 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
25 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_i32" class="fn">deserialize_i32</a><V>(
28 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
29 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
30 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_i64" class="fn">deserialize_i64</a><V>(
33 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
34 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
35 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_u8" class="fn">deserialize_u8</a><V>(
38 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
39 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
40 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_u16" class="fn">deserialize_u16</a><V>(
43 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
44 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
45 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_u32" class="fn">deserialize_u32</a><V>(
48 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
49 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
50 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_u64" class="fn">deserialize_u64</a><V>(
53 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
54 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
55 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_f32" class="fn">deserialize_f32</a><V>(
58 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
59 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
60 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_f64" class="fn">deserialize_f64</a><V>(
63 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
64 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
65 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_char" class="fn">deserialize_char</a><V>(
68 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
69 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
70 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_str" class="fn">deserialize_str</a><V>(
73 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
74 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
75 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_string" class="fn">deserialize_string</a><V>(
78 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
79 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
80 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_bytes" class="fn">deserialize_bytes</a><V>(
83 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
84 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
85 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_byte_buf" class="fn">deserialize_byte_buf</a><V>(
88 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
89 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
90 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_option" class="fn">deserialize_option</a><V>(
93 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
94 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
95 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_unit" class="fn">deserialize_unit</a><V>(
98 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
99 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
100 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_unit_struct" class="fn">deserialize_unit_struct</a><V>(
102 name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
104 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
105 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
106 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_newtype_struct" class="fn">deserialize_newtype_struct</a><V>(
108 name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
110 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
111 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
112 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_seq" class="fn">deserialize_seq</a><V>(
115 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
116 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
117 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_tuple" class="fn">deserialize_tuple</a><V>(
119 len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
121 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
122 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
123 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_tuple_struct" class="fn">deserialize_tuple_struct</a><V>(
125 name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
126 len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
128 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
129 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
130 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_map" class="fn">deserialize_map</a><V>(
133 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
134 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
135 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_struct" class="fn">deserialize_struct</a><V>(
137 name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
138 fields: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>],
140 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
141 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
142 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_enum" class="fn">deserialize_enum</a><V>(
144 name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
145 variants: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>],
147 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
148 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
149 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_identifier" class="fn">deserialize_identifier</a><V>(
152 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
153 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
154 <span class="item-spacer"></span> fn <a href="#tymethod.deserialize_ignored_any" class="fn">deserialize_ignored_any</a><V>(
157 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
158 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span>;
161 fn <a href="#method.deserialize_i128" class="fn">deserialize_i128</a><V>(
164 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
165 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span> { ... }
166 <span class="item-spacer"></span> fn <a href="#method.deserialize_u128" class="fn">deserialize_u128</a><V>(
169 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>>
170 <span class="where">where V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de></span> { ... }
171 <span class="item-spacer"></span> fn <a href="#method.is_human_readable" class="fn">is_human_readable</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> { ... }
172 </details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A <strong>data format</strong> that can deserialize any data structure supported by
174 <p>The role of this trait is to define the deserialization half of the <a href="https://serde.rs/data-model.html">Serde
175 data model</a>, which is a way to categorize every Rust data type into one of
176 29 possible types. Each method of the <code>Deserializer</code> trait corresponds to one
177 of the types of the data model.</p>
178 <p>Implementations of <code>Deserialize</code> map themselves into this data model by
179 passing to the <code>Deserializer</code> a <code>Visitor</code> implementation that can receive
180 these various types.</p>
181 <p>The types that make up the Serde data model are:</p>
183 <li><strong>14 primitive types</strong>
186 <li>i8, i16, i32, i64, i128</li>
187 <li>u8, u16, u32, u64, u128</li>
192 <li><strong>string</strong>
194 <li>UTF-8 bytes with a length and no null terminator.</li>
195 <li>When serializing, all strings are handled equally. When deserializing,
196 there are three flavors of strings: transient, owned, and borrowed.</li>
199 <li><strong>byte array</strong> - [u8]
201 <li>Similar to strings, during deserialization byte arrays can be
202 transient, owned, or borrowed.</li>
205 <li><strong>option</strong>
207 <li>Either none or some value.</li>
210 <li><strong>unit</strong>
212 <li>The type of <code>()</code> in Rust. It represents an anonymous value containing
216 <li><strong>unit_struct</strong>
218 <li>For example <code>struct Unit</code> or <code>PhantomData<T></code>. It represents a named
219 value containing no data.</li>
222 <li><strong>unit_variant</strong>
224 <li>For example the <code>E::A</code> and <code>E::B</code> in <code>enum E { A, B }</code>.</li>
227 <li><strong>newtype_struct</strong>
229 <li>For example <code>struct Millimeters(u8)</code>.</li>
232 <li><strong>newtype_variant</strong>
234 <li>For example the <code>E::N</code> in <code>enum E { N(u8) }</code>.</li>
237 <li><strong>seq</strong>
239 <li>A variably sized heterogeneous sequence of values, for example <code>Vec<T></code>
240 or <code>HashSet<T></code>. When serializing, the length may or may not be known
241 before iterating through all the data. When deserializing, the length
242 is determined by looking at the serialized data.</li>
245 <li><strong>tuple</strong>
247 <li>A statically sized heterogeneous sequence of values for which the
248 length will be known at deserialization time without looking at the
249 serialized data, for example <code>(u8,)</code> or <code>(String, u64, Vec<T>)</code> or
250 <code>[u64; 10]</code>.</li>
253 <li><strong>tuple_struct</strong>
255 <li>A named tuple, for example <code>struct Rgb(u8, u8, u8)</code>.</li>
258 <li><strong>tuple_variant</strong>
260 <li>For example the <code>E::T</code> in <code>enum E { T(u8, u8) }</code>.</li>
263 <li><strong>map</strong>
265 <li>A heterogeneous key-value pairing, for example <code>BTreeMap<K, V></code>.</li>
268 <li><strong>struct</strong>
270 <li>A heterogeneous key-value pairing in which the keys are strings and
271 will be known at deserialization time without looking at the serialized
272 data, for example <code>struct S { r: u8, g: u8, b: u8 }</code>.</li>
275 <li><strong>struct_variant</strong>
277 <li>For example the <code>E::S</code> in <code>enum E { S { r: u8, g: u8, b: u8 } }</code>.</li>
281 <p>The <code>Deserializer</code> trait supports two entry point styles which enables
282 different kinds of deserialization.</p>
285 <p>The <code>deserialize_any</code> method. Self-describing data formats like JSON are
286 able to look at the serialized data and tell what it represents. For
287 example the JSON deserializer may see an opening curly brace (<code>{</code>) and
288 know that it is seeing a map. If the data format supports
289 <code>Deserializer::deserialize_any</code>, it will drive the Visitor using whatever
290 type it sees in the input. JSON uses this approach when deserializing
291 <code>serde_json::Value</code> which is an enum that can represent any JSON
292 document. Without knowing what is in a JSON document, we can deserialize
293 it to <code>serde_json::Value</code> by going through
294 <code>Deserializer::deserialize_any</code>.</p>
297 <p>The various <code>deserialize_*</code> methods. Non-self-describing formats like
298 Postcard need to be told what is in the input in order to deserialize it.
299 The <code>deserialize_*</code> methods are hints to the deserializer for how to
300 interpret the next piece of input. Non-self-describing formats are not
301 able to deserialize something like <code>serde_json::Value</code> which relies on
302 <code>Deserializer::deserialize_any</code>.</p>
305 <p>When implementing <code>Deserialize</code>, you should avoid relying on
306 <code>Deserializer::deserialize_any</code> unless you need to be told by the
307 Deserializer what type is in the input. Know that relying on
308 <code>Deserializer::deserialize_any</code> means your data type will be able to
309 deserialize from self-describing formats only, ruling out Postcard and many
311 <h2 id="lifetime"><a class="doc-anchor" href="#lifetime">§</a>Lifetime</h2>
312 <p>The <code>'de</code> lifetime of this trait is the lifetime of data that may be
313 borrowed from the input when deserializing. See the page <a href="https://serde.rs/lifetimes.html">Understanding
314 deserializer lifetimes</a> for a more detailed explanation of these lifetimes.</p>
315 <h2 id="example-implementation"><a class="doc-anchor" href="#example-implementation">§</a>Example implementation</h2>
316 <p>The <a href="https://serde.rs/data-format.html">example data format</a> presented on the website contains example code for
317 a basic JSON <code>Deserializer</code>.</p>
318 </div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Error" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#917">Source</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a>: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a></h4></section></summary><div class="docblock"><p>The error type that can be returned if some error occurs during
320 </div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_any" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#928-930">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_any" class="fn">deserialize_any</a><V>(
323 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
324 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Require the <code>Deserializer</code> to figure out how to drive the visitor based
325 on what data type is in the input.</p>
326 <p>When implementing <code>Deserialize</code>, you should avoid relying on
327 <code>Deserializer::deserialize_any</code> unless you need to be told by the
328 Deserializer what type is in the input. Know that relying on
329 <code>Deserializer::deserialize_any</code> means your data type will be able to
330 deserialize from self-describing formats only, ruling out Postcard and
332 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_bool" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#933-935">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_bool" class="fn">deserialize_bool</a><V>(
335 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
336 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a <code>bool</code> value.</p>
337 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_i8" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#938-940">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_i8" class="fn">deserialize_i8</a><V>(
340 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
341 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting an <code>i8</code> value.</p>
342 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_i16" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#943-945">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_i16" class="fn">deserialize_i16</a><V>(
345 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
346 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting an <code>i16</code> value.</p>
347 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_i32" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#948-950">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_i32" class="fn">deserialize_i32</a><V>(
350 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
351 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting an <code>i32</code> value.</p>
352 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_i64" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#953-955">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_i64" class="fn">deserialize_i64</a><V>(
355 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
356 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting an <code>i64</code> value.</p>
357 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_u8" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#969-971">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_u8" class="fn">deserialize_u8</a><V>(
360 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
361 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a <code>u8</code> value.</p>
362 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_u16" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#974-976">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_u16" class="fn">deserialize_u16</a><V>(
365 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
366 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a <code>u16</code> value.</p>
367 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_u32" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#979-981">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_u32" class="fn">deserialize_u32</a><V>(
370 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
371 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a <code>u32</code> value.</p>
372 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_u64" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#984-986">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_u64" class="fn">deserialize_u64</a><V>(
375 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
376 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a <code>u64</code> value.</p>
377 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_f32" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1000-1002">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_f32" class="fn">deserialize_f32</a><V>(
380 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
381 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a <code>f32</code> value.</p>
382 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_f64" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1005-1007">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_f64" class="fn">deserialize_f64</a><V>(
385 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
386 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a <code>f64</code> value.</p>
387 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_char" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1010-1012">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_char" class="fn">deserialize_char</a><V>(
390 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
391 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a <code>char</code> value.</p>
392 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_str" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1021-1023">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_str" class="fn">deserialize_str</a><V>(
395 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
396 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a string value and does
397 not benefit from taking ownership of buffered data owned by the
398 <code>Deserializer</code>.</p>
399 <p>If the <code>Visitor</code> would benefit from taking ownership of <code>String</code> data,
400 indicate this to the <code>Deserializer</code> by using <code>deserialize_string</code>
402 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_string" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1032-1034">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_string" class="fn">deserialize_string</a><V>(
405 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
406 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a string value and would
407 benefit from taking ownership of buffered data owned by the
408 <code>Deserializer</code>.</p>
409 <p>If the <code>Visitor</code> would not benefit from taking ownership of <code>String</code>
410 data, indicate that to the <code>Deserializer</code> by using <code>deserialize_str</code>
412 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_bytes" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1043-1045">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_bytes" class="fn">deserialize_bytes</a><V>(
415 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
416 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a byte array and does not
417 benefit from taking ownership of buffered data owned by the
418 <code>Deserializer</code>.</p>
419 <p>If the <code>Visitor</code> would benefit from taking ownership of <code>Vec<u8></code> data,
420 indicate this to the <code>Deserializer</code> by using <code>deserialize_byte_buf</code>
422 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_byte_buf" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1054-1056">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_byte_buf" class="fn">deserialize_byte_buf</a><V>(
425 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
426 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a byte array and would
427 benefit from taking ownership of buffered data owned by the
428 <code>Deserializer</code>.</p>
429 <p>If the <code>Visitor</code> would not benefit from taking ownership of <code>Vec<u8></code>
430 data, indicate that to the <code>Deserializer</code> by using <code>deserialize_bytes</code>
432 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_option" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1063-1065">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_option" class="fn">deserialize_option</a><V>(
435 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
436 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting an optional value.</p>
437 <p>This allows deserializers that encode an optional value as a nullable
438 value to convert the null value into <code>None</code> and a regular value into
439 <code>Some(value)</code>.</p>
440 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_unit" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1068-1070">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_unit" class="fn">deserialize_unit</a><V>(
443 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
444 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a unit value.</p>
445 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_unit_struct" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1074-1080">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_unit_struct" class="fn">deserialize_unit_struct</a><V>(
447 name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
449 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
450 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a unit struct with a
452 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_newtype_struct" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1084-1090">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_newtype_struct" class="fn">deserialize_newtype_struct</a><V>(
454 name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
456 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
457 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a newtype struct with a
459 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_seq" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1093-1095">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_seq" class="fn">deserialize_seq</a><V>(
462 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
463 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a sequence of values.</p>
464 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_tuple" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1099-1101">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_tuple" class="fn">deserialize_tuple</a><V>(
466 len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
468 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
469 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a sequence of values and
470 knows how many values there are without looking at the serialized data.</p>
471 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_tuple_struct" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1105-1112">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_tuple_struct" class="fn">deserialize_tuple_struct</a><V>(
473 name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
474 len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
476 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
477 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a tuple struct with a
478 particular name and number of fields.</p>
479 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_map" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1115-1117">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_map" class="fn">deserialize_map</a><V>(
482 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
483 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a map of key-value pairs.</p>
484 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_struct" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1121-1128">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_struct" class="fn">deserialize_struct</a><V>(
486 name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
487 fields: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>],
489 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
490 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting a struct with a particular
492 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_enum" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1132-1139">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_enum" class="fn">deserialize_enum</a><V>(
494 name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
495 variants: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>],
497 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
498 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting an enum value with a
499 particular name and possible variants.</p>
500 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_identifier" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1143-1145">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_identifier" class="fn">deserialize_identifier</a><V>(
503 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
504 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting the name of a struct
505 field or the discriminant of an enum variant.</p>
506 </div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deserialize_ignored_any" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1151-1153">Source</a><h4 class="code-header">fn <a href="#tymethod.deserialize_ignored_any" class="fn">deserialize_ignored_any</a><V>(
509 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
510 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type needs to deserialize a value whose type
511 doesn’t matter because it is ignored.</p>
512 <p>Deserializers for non-self-describing formats may not support this mode.</p>
513 </div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.deserialize_i128" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#960-962">Source</a><h4 class="code-header">fn <a href="#method.deserialize_i128" class="fn">deserialize_i128</a><V>(
516 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
517 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting an <code>i128</code> value.</p>
518 <p>The default behavior unconditionally returns an error.</p>
519 </div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u128" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#991-993">Source</a><h4 class="code-header">fn <a href="#method.deserialize_u128" class="fn">deserialize_u128</a><V>(
522 ) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<V as <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>>::<a class="associatedtype" href="de/trait.Visitor.html#associatedtype.Value" title="type bdk_chain::bitcoin::hashes::serde::de::Visitor::Value">Value</a>, Self::<a class="associatedtype" href="trait.Deserializer.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::Deserializer::Error">Error</a>><div class="where">where
523 V: <a class="trait" href="de/trait.Visitor.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class="docblock"><p>Hint that the <code>Deserialize</code> type is expecting an <code>u128</code> value.</p>
524 <p>The default behavior unconditionally returns an error.</p>
525 </div></details><details class="toggle method-toggle" open><summary><section id="method.is_human_readable" class="method"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/mod.rs.html#1222">Source</a><h4 class="code-header">fn <a href="#method.is_human_readable" class="fn">is_human_readable</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Determine whether <code>Deserialize</code> implementations should expect to
526 deserialize their human-readable form.</p>
527 <p>Some types have a human-readable form that may be somewhat expensive to
528 construct, as well as a binary form that is compact and efficient.
529 Generally text-based formats like JSON and YAML will prefer to use the
530 human-readable one and binary formats like Postcard will prefer the
533 <div class="example-wrap edition"><a href="#" class="tooltip" title="This example runs with edition 2021">ⓘ</a><pre class="rust rust-example-rendered"><code><span class="kw">use </span>serde::de::{<span class="self">self</span>, Deserialize, Deserializer};
535 <span class="kw">impl</span><<span class="lifetime">'de</span>> Deserialize<<span class="lifetime">'de</span>> <span class="kw">for </span>Timestamp {
536 <span class="kw">fn </span>deserialize<D>(deserializer: D) -> <span class="prelude-ty">Result</span><<span class="self">Self</span>, D::Error>
537 <span class="kw">where
538 </span>D: Deserializer<<span class="lifetime">'de</span>>,
540 <span class="kw">if </span>deserializer.is_human_readable() {
541 <span class="comment">// Deserialize from a human-readable string like "2015-05-15T17:01:00Z".
542 </span><span class="kw">let </span>s = String::deserialize(deserializer)<span class="question-mark">?</span>;
543 Timestamp::from_str(<span class="kw-2">&</span>s).map_err(de::Error::custom)
544 } <span class="kw">else </span>{
545 <span class="comment">// Deserialize from a compact binary representation, seconds since
547 </span><span class="kw">let </span>n = u64::deserialize(deserializer)<span class="question-mark">?</span>;
548 <span class="prelude-val">Ok</span>(Timestamp::EPOCH + Duration::seconds(n))
552 <p>The default implementation of this method returns <code>true</code>. Data formats
553 may override this to <code>false</code> to request a compact form for types that
554 support one. Note that modifying this method to change a format from
555 human-readable to compact or vice versa should be regarded as a breaking
556 change, as a value serialized in human-readable mode is not required to
557 deserialize from the same data in compact mode.</p>
558 </div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-BytesDeserializer%3C'a,+E%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#899-901">Source</a><a href="#impl-Deserializer%3C'de%3E-for-BytesDeserializer%3C'a,+E%3E" class="anchor">§</a><h3 class="code-header">impl<'de, 'a, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.BytesDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::BytesDeserializer">BytesDeserializer</a><'a, E><div class="where">where
559 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#903">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-CowStrDeserializer%3C'a,+E%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#793-795">Source</a><a href="#impl-Deserializer%3C'de%3E-for-CowStrDeserializer%3C'a,+E%3E" class="anchor">§</a><h3 class="code-header">impl<'de, 'a, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.CowStrDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::CowStrDeserializer">CowStrDeserializer</a><'a, E><div class="where">where
560 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#797">Source</a><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-StrDeserializer%3C'a,+E%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#472-474">Source</a><a href="#impl-Deserializer%3C'de%3E-for-StrDeserializer%3C'a,+E%3E" class="anchor">§</a><h3 class="code-header">impl<'de, 'a, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.StrDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::StrDeserializer">StrDeserializer</a><'a, E><div class="where">where
561 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#476">Source</a><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-EnumAccessDeserializer%3CA%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#1697-1699">Source</a><a href="#impl-Deserializer%3C'de%3E-for-EnumAccessDeserializer%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<'de, A> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.EnumAccessDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::EnumAccessDeserializer">EnumAccessDeserializer</a><A><div class="where">where
562 A: <a class="trait" href="de/trait.EnumAccess.html" title="trait bdk_chain::bitcoin::hashes::serde::de::EnumAccess">EnumAccess</a><'de>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-4" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#1701">Source</a><a href="#associatedtype.Error-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <A as <a class="trait" href="de/trait.EnumAccess.html" title="trait bdk_chain::bitcoin::hashes::serde::de::EnumAccess">EnumAccess</a><'de>>::<a class="associatedtype" href="de/trait.EnumAccess.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::de::EnumAccess::Error">Error</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-MapAccessDeserializer%3CA%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#1621-1623">Source</a><a href="#impl-Deserializer%3C'de%3E-for-MapAccessDeserializer%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<'de, A> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.MapAccessDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::MapAccessDeserializer">MapAccessDeserializer</a><A><div class="where">where
563 A: <a class="trait" href="de/trait.MapAccess.html" title="trait bdk_chain::bitcoin::hashes::serde::de::MapAccess">MapAccess</a><'de>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-5" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#1625">Source</a><a href="#associatedtype.Error-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <A as <a class="trait" href="de/trait.MapAccess.html" title="trait bdk_chain::bitcoin::hashes::serde::de::MapAccess">MapAccess</a><'de>>::<a class="associatedtype" href="de/trait.MapAccess.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::de::MapAccess::Error">Error</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-SeqAccessDeserializer%3CA%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#1192-1194">Source</a><a href="#impl-Deserializer%3C'de%3E-for-SeqAccessDeserializer%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<'de, A> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.SeqAccessDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::SeqAccessDeserializer">SeqAccessDeserializer</a><A><div class="where">where
564 A: <a class="trait" href="de/trait.SeqAccess.html" title="trait bdk_chain::bitcoin::hashes::serde::de::SeqAccess">SeqAccess</a><'de>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-6" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#1196">Source</a><a href="#associatedtype.Error-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <A as <a class="trait" href="de/trait.SeqAccess.html" title="trait bdk_chain::bitcoin::hashes::serde::de::SeqAccess">SeqAccess</a><'de>>::<a class="associatedtype" href="de/trait.SeqAccess.html#associatedtype.Error" title="type bdk_chain::bitcoin::hashes::serde::de::SeqAccess::Error">Error</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-BoolDeserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#327">Source</a><a href="#impl-Deserializer%3C'de%3E-for-BoolDeserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.BoolDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::BoolDeserializer">BoolDeserializer</a><E><div class="where">where
565 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-7" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#327">Source</a><a href="#associatedtype.Error-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-BorrowedBytesDeserializer%3C'de,+E%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#958-960">Source</a><a href="#impl-Deserializer%3C'de%3E-for-BorrowedBytesDeserializer%3C'de,+E%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.BorrowedBytesDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::BorrowedBytesDeserializer">BorrowedBytesDeserializer</a><'de, E><div class="where">where
566 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-8" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#962">Source</a><a href="#associatedtype.Error-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-BorrowedStrDeserializer%3C'de,+E%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#562-564">Source</a><a href="#impl-Deserializer%3C'de%3E-for-BorrowedStrDeserializer%3C'de,+E%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.BorrowedStrDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::BorrowedStrDeserializer">BorrowedStrDeserializer</a><'de, E><div class="where">where
567 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-9" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#566">Source</a><a href="#associatedtype.Error-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-CharDeserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#341">Source</a><a href="#impl-Deserializer%3C'de%3E-for-CharDeserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.CharDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::CharDeserializer">CharDeserializer</a><E><div class="where">where
568 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-10" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#341">Source</a><a href="#associatedtype.Error-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-F32Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#339">Source</a><a href="#impl-Deserializer%3C'de%3E-for-F32Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.F32Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::F32Deserializer">F32Deserializer</a><E><div class="where">where
569 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-11" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#339">Source</a><a href="#associatedtype.Error-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-F64Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#340">Source</a><a href="#impl-Deserializer%3C'de%3E-for-F64Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.F64Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::F64Deserializer">F64Deserializer</a><E><div class="where">where
570 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-12" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#340">Source</a><a href="#associatedtype.Error-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-I8Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#328">Source</a><a href="#impl-Deserializer%3C'de%3E-for-I8Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.I8Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::I8Deserializer">I8Deserializer</a><E><div class="where">where
571 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-13" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#328">Source</a><a href="#associatedtype.Error-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-I16Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#329">Source</a><a href="#impl-Deserializer%3C'de%3E-for-I16Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.I16Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::I16Deserializer">I16Deserializer</a><E><div class="where">where
572 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-14" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#329">Source</a><a href="#associatedtype.Error-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-I32Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#330">Source</a><a href="#impl-Deserializer%3C'de%3E-for-I32Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.I32Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::I32Deserializer">I32Deserializer</a><E><div class="where">where
573 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-15" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#330">Source</a><a href="#associatedtype.Error-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-I64Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#331">Source</a><a href="#impl-Deserializer%3C'de%3E-for-I64Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.I64Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::I64Deserializer">I64Deserializer</a><E><div class="where">where
574 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-16" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#331">Source</a><a href="#associatedtype.Error-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-I128Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#332">Source</a><a href="#impl-Deserializer%3C'de%3E-for-I128Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.I128Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::I128Deserializer">I128Deserializer</a><E><div class="where">where
575 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-17" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#332">Source</a><a href="#associatedtype.Error-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-IsizeDeserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#333">Source</a><a href="#impl-Deserializer%3C'de%3E-for-IsizeDeserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.IsizeDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::IsizeDeserializer">IsizeDeserializer</a><E><div class="where">where
576 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-18" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#333">Source</a><a href="#associatedtype.Error-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-StringDeserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#676-678">Source</a><a href="#impl-Deserializer%3C'de%3E-for-StringDeserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.StringDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::StringDeserializer">StringDeserializer</a><E><div class="where">where
577 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-19" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#680">Source</a><a href="#associatedtype.Error-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-U8Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#334">Source</a><a href="#impl-Deserializer%3C'de%3E-for-U8Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.U8Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::U8Deserializer">U8Deserializer</a><E><div class="where">where
578 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-20" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#334">Source</a><a href="#associatedtype.Error-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-U16Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#335">Source</a><a href="#impl-Deserializer%3C'de%3E-for-U16Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.U16Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::U16Deserializer">U16Deserializer</a><E><div class="where">where
579 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-21" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#335">Source</a><a href="#associatedtype.Error-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-U32Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#372-374">Source</a><a href="#impl-Deserializer%3C'de%3E-for-U32Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.U32Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::U32Deserializer">U32Deserializer</a><E><div class="where">where
580 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-22" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#376">Source</a><a href="#associatedtype.Error-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-U64Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#336">Source</a><a href="#impl-Deserializer%3C'de%3E-for-U64Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.U64Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::U64Deserializer">U64Deserializer</a><E><div class="where">where
581 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-23" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#336">Source</a><a href="#associatedtype.Error-23" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-U128Deserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#337">Source</a><a href="#impl-Deserializer%3C'de%3E-for-U128Deserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.U128Deserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::U128Deserializer">U128Deserializer</a><E><div class="where">where
582 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-24" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#337">Source</a><a href="#associatedtype.Error-24" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-UnitDeserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#151-153">Source</a><a href="#impl-Deserializer%3C'de%3E-for-UnitDeserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.UnitDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::UnitDeserializer">UnitDeserializer</a><E><div class="where">where
583 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-25" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#155">Source</a><a href="#associatedtype.Error-25" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-UsizeDeserializer%3CE%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#338">Source</a><a href="#impl-Deserializer%3C'de%3E-for-UsizeDeserializer%3CE%3E" class="anchor">§</a><h3 class="code-header">impl<'de, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.UsizeDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::UsizeDeserializer">UsizeDeserializer</a><E><div class="where">where
584 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-26" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#338">Source</a><a href="#associatedtype.Error-26" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-MapDeserializer%3C'de,+I,+E%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#1294-1300">Source</a><a href="#impl-Deserializer%3C'de%3E-for-MapDeserializer%3C'de,+I,+E%3E" class="anchor">§</a><h3 class="code-header">impl<'de, I, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.MapDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::MapDeserializer">MapDeserializer</a><'de, I, E><div class="where">where
585 I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>,
586 <I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: Pair,
587 <<I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a> as Pair>::First: <a class="trait" href="de/trait.IntoDeserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::de::IntoDeserializer">IntoDeserializer</a><'de, E>,
588 <<I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a> as Pair>::Second: <a class="trait" href="de/trait.IntoDeserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::de::IntoDeserializer">IntoDeserializer</a><'de, E>,
589 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-27" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#1302">Source</a><a href="#associatedtype.Error-27" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Deserializer%3C'de%3E-for-SeqDeserializer%3CI,+E%3E" class="impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#1044-1048">Source</a><a href="#impl-Deserializer%3C'de%3E-for-SeqDeserializer%3CI,+E%3E" class="anchor">§</a><h3 class="code-header">impl<'de, I, T, E> <a class="trait" href="trait.Deserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::Deserializer">Deserializer</a><'de> for <a class="struct" href="de/value/struct.SeqDeserializer.html" title="struct bdk_chain::bitcoin::hashes::serde::de::value::SeqDeserializer">SeqDeserializer</a><I, E><div class="where">where
590 I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = T>,
591 T: <a class="trait" href="de/trait.IntoDeserializer.html" title="trait bdk_chain::bitcoin::hashes::serde::de::IntoDeserializer">IntoDeserializer</a><'de, E>,
592 E: <a class="trait" href="de/trait.Error.html" title="trait bdk_chain::bitcoin::hashes::serde::de::Error">Error</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-28" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/serde/1.0.216/src/serde/de/value.rs.html#1050">Source</a><a href="#associatedtype.Error-28" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details></div><script src="../../../../trait.impl/serde/de/trait.Deserializer.js" data-ignore-extern-crates="serde" async></script></section></div></main></body></html>