188 lines
79 KiB
HTML
188 lines
79 KiB
HTML
<!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="Reference to a range of bytes encompassing a single valid JSON value in the input data."><title>RawValue in serde_json::value - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="serde_json" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">RawValue</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../serde_json/index.html">serde_<wbr>json</a><span class="version">1.0.149</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">RawValue</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#note" title="Note">Note</a></li><li><a href="#example" title="Example">Example</a></li><li><a href="#ownership" title="Ownership">Ownership</a></li></ul><h3><a href="#implementations">Associated Constants</a></h3><ul class="block associatedconstant"><li><a href="#associatedconstant.FALSE" title="FALSE">FALSE</a></li><li><a href="#associatedconstant.NULL" title="NULL">NULL</a></li><li><a href="#associatedconstant.TRUE" title="TRUE">TRUE</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.from_string" title="from_string">from_string</a></li><li><a href="#method.get" title="get">get</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Box%3CRawValue%3E" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-RawValue" title="Debug">Debug</a></li><li><a href="#impl-Default-for-Box%3CRawValue%3E" title="Default">Default</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-%26RawValue" title="Deserialize<'de>">Deserialize<'de></a></li><li><a href="#impl-Deserialize%3C'de%3E-for-Box%3CRawValue%3E" title="Deserialize<'de>">Deserialize<'de></a></li><li><a href="#impl-Deserializer%3C'de%3E-for-%26RawValue" title="Deserializer<'de>">Deserializer<'de></a></li><li><a href="#impl-Display-for-RawValue" title="Display">Display</a></li><li><a href="#impl-IntoDeserializer%3C'de,+Error%3E-for-%26RawValue" title="IntoDeserializer<'de, Error>">IntoDeserializer<'de, Error></a></li><li><a href="#impl-Serialize-for-RawValue" title="Serialize">Serialize</a></li><li><a href="#impl-ToOwned-for-RawValue" title="ToOwned">ToOwned</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Sized-for-RawValue" title="!Sized">!Sized</a></li><li><a href="#impl-Freeze-for-RawValue" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-RawValue" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-RawValue" title="Send">Send</a></li><li><a href="#impl-Sync-for-RawValue" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-RawValue" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-RawValue" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-ToString-for-T" title="ToString">ToString</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In serde_<wbr>json::<wbr>value</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">serde_json</a>::<wbr><a href="index.html">value</a></div><h1>Struct <span class="struct">RawValue</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="../../src/serde_json/raw.rs.html#117-119">Source</a> </span></div><pre class="rust item-decl"><code>pub struct RawValue { <span class="comment">/* private fields */</span> }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Reference to a range of bytes encompassing a single valid JSON value in the
|
||
input data.</p>
|
||
<p>A <code>RawValue</code> can be used to defer parsing parts of a payload until later,
|
||
or to avoid parsing it at all in the case that part of the payload just
|
||
needs to be transferred verbatim into a different output object.</p>
|
||
<p>When serializing, a value of this type will retain its original formatting
|
||
and will not be minified or pretty-printed.</p>
|
||
<h2 id="note"><a class="doc-anchor" href="#note">§</a>Note</h2>
|
||
<p><code>RawValue</code> is only available if serde_json is built with the <code>"raw_value"</code>
|
||
feature.</p>
|
||
<div class="example-wrap"><pre class="language-toml"><code>[dependencies]
|
||
serde_json = { version = "1.0", features = ["raw_value"] }</code></pre></div><h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>serde::{Deserialize, Serialize};
|
||
<span class="kw">use </span>serde_json::{<span class="prelude-ty">Result</span>, value::RawValue};
|
||
|
||
<span class="attr">#[derive(Deserialize)]
|
||
</span><span class="kw">struct </span>Input<<span class="lifetime">'a</span>> {
|
||
code: u32,
|
||
<span class="attr">#[serde(borrow)]
|
||
</span>payload: <span class="kw-2">&</span><span class="lifetime">'a </span>RawValue,
|
||
}
|
||
|
||
<span class="attr">#[derive(Serialize)]
|
||
</span><span class="kw">struct </span>Output<<span class="lifetime">'a</span>> {
|
||
info: (u32, <span class="kw-2">&</span><span class="lifetime">'a </span>RawValue),
|
||
}
|
||
|
||
<span class="comment">// Efficiently rearrange JSON input containing separate "code" and "payload"
|
||
// keys into a single "info" key holding an array of code and payload.
|
||
//
|
||
// This could be done equivalently using serde_json::Value as the type for
|
||
// payload, but &RawValue will perform better because it does not require
|
||
// memory allocation. The correct range of bytes is borrowed from the input
|
||
// data and pasted verbatim into the output.
|
||
</span><span class="kw">fn </span>rearrange(input: <span class="kw-2">&</span>str) -> <span class="prelude-ty">Result</span><String> {
|
||
<span class="kw">let </span>input: Input = serde_json::from_str(input)<span class="question-mark">?</span>;
|
||
|
||
<span class="kw">let </span>output = Output {
|
||
info: (input.code, input.payload),
|
||
};
|
||
|
||
serde_json::to_string(<span class="kw-2">&</span>output)
|
||
}
|
||
|
||
<span class="kw">fn </span>main() -> <span class="prelude-ty">Result</span><()> {
|
||
<span class="kw">let </span>out = rearrange(<span class="string">r#" {"code": 200, "payload": {}} "#</span>)<span class="question-mark">?</span>;
|
||
|
||
<span class="macro">assert_eq!</span>(out, <span class="string">r#"{"info":[200,{}]}"#</span>);
|
||
|
||
<span class="prelude-val">Ok</span>(())
|
||
}</code></pre></div><h2 id="ownership"><a class="doc-anchor" href="#ownership">§</a>Ownership</h2>
|
||
<p>The typical usage of <code>RawValue</code> will be in the borrowed form:</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[derive(Deserialize)]
|
||
</span><span class="kw">struct </span>SomeStruct<<span class="lifetime">'a</span>> {
|
||
<span class="attr">#[serde(borrow)]
|
||
</span>raw_value: <span class="kw-2">&</span><span class="lifetime">'a </span>RawValue,
|
||
}</code></pre></div>
|
||
<p>The borrowed form is suitable when deserializing through
|
||
<a href="../fn.from_str.html" title="fn serde_json::from_str"><code>serde_json::from_str</code></a> and <a href="../fn.from_slice.html" title="fn serde_json::from_slice"><code>serde_json::from_slice</code></a> which support
|
||
borrowing from the input data without memory allocation.</p>
|
||
<p>When deserializing through <a href="../fn.from_reader.html" title="fn serde_json::from_reader"><code>serde_json::from_reader</code></a> you will need to use
|
||
the boxed form of <code>RawValue</code> instead. This is almost as efficient but
|
||
involves buffering the raw value from the I/O stream into memory.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[derive(Deserialize)]
|
||
</span><span class="kw">struct </span>SomeStruct {
|
||
raw_value: Box<RawValue>,
|
||
}</code></pre></div></div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-RawValue" class="impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#170-230">Source</a><a href="#impl-RawValue" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.NULL" class="associatedconstant"><a class="src rightside" href="../../src/serde_json/raw.rs.html#172">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.NULL" class="constant">NULL</a>: &'static <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h4></section></summary><div class="docblock"><p>A constant RawValue with the JSON value <code>null</code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.TRUE" class="associatedconstant"><a class="src rightside" href="../../src/serde_json/raw.rs.html#174">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.TRUE" class="constant">TRUE</a>: &'static <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h4></section></summary><div class="docblock"><p>A constant RawValue with the JSON value <code>true</code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedconstant.FALSE" class="associatedconstant"><a class="src rightside" href="../../src/serde_json/raw.rs.html#176">Source</a><h4 class="code-header">pub const <a href="#associatedconstant.FALSE" class="constant">FALSE</a>: &'static <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h4></section></summary><div class="docblock"><p>A constant RawValue with the JSON value <code>false</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_string" class="method"><a class="src rightside" href="../../src/serde_json/raw.rs.html#186-192">Source</a><h4 class="code-header">pub fn <a href="#method.from_string" class="fn">from_string</a>(json: <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><Self>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>></h4></section></summary><div class="docblock"><p>Convert an owned <code>String</code> of JSON data to an owned <code>RawValue</code>.</p>
|
||
<p>This function is equivalent to <code>serde_json::from_str::<Box<RawValue>></code>
|
||
except that we avoid an allocation and memcpy if both of the following
|
||
are true:</p>
|
||
<ul>
|
||
<li>the input has no leading or trailing whitespace, and</li>
|
||
<li>the input has capacity equal to its length.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get" class="method"><a class="src rightside" href="../../src/serde_json/raw.rs.html#227-229">Source</a><h4 class="code-header">pub fn <a href="#method.get" class="fn">get</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a></h4></section></summary><div class="docblock"><p>Access the JSON text underlying a raw value.</p>
|
||
<h5 id="example-1"><a class="doc-anchor" href="#example-1">§</a>Example</h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>serde::Deserialize;
|
||
<span class="kw">use </span>serde_json::{<span class="prelude-ty">Result</span>, value::RawValue};
|
||
|
||
<span class="attr">#[derive(Deserialize)]
|
||
</span><span class="kw">struct </span>Response<<span class="lifetime">'a</span>> {
|
||
code: u32,
|
||
<span class="attr">#[serde(borrow)]
|
||
</span>payload: <span class="kw-2">&</span><span class="lifetime">'a </span>RawValue,
|
||
}
|
||
|
||
<span class="kw">fn </span>process(input: <span class="kw-2">&</span>str) -> <span class="prelude-ty">Result</span><()> {
|
||
<span class="kw">let </span>response: Response = serde_json::from_str(input)<span class="question-mark">?</span>;
|
||
|
||
<span class="kw">let </span>payload = response.payload.get();
|
||
<span class="kw">if </span>payload.starts_with(<span class="string">'{'</span>) {
|
||
<span class="comment">// handle a payload which is a JSON map
|
||
</span>} <span class="kw">else </span>{
|
||
<span class="comment">// handle any other type
|
||
</span>}
|
||
|
||
<span class="prelude-val">Ok</span>(())
|
||
}
|
||
|
||
<span class="kw">fn </span>main() -> <span class="prelude-ty">Result</span><()> {
|
||
process(<span class="string">r#" {"code": 200, "payload": {}} "#</span>)<span class="question-mark">?</span>;
|
||
<span class="prelude-val">Ok</span>(())
|
||
}</code></pre></div></div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Box%3CRawValue%3E" class="impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#135-139">Source</a><a href="#impl-Clone-for-Box%3CRawValue%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#136-138">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> Self</h4></section></summary><div class='docblock'>Returns a duplicate of the value. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#245-247">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-RawValue" class="impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#155-162">Source</a><a href="#impl-Debug-for-RawValue" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#156-161">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, formatter: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.93.1/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Default-for-Box%3CRawValue%3E" class="impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#149-153">Source</a><a href="#impl-Default-for-Box%3CRawValue%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#150-152">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -> Self</h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.93.1/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-%26RawValue" class="impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#312-340">Source</a><a href="#impl-Deserialize%3C'de%3E-for-%26RawValue" class="anchor">§</a><h3 class="code-header">impl<'de: 'a, 'a> <a class="trait" href="../../serde_core/de/trait.Deserialize.html" title="trait serde_core::de::Deserialize">Deserialize</a><'de> for &'a <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#313-339">Source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, D::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
D: <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="../../serde_core/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-Box%3CRawValue%3E" class="impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#342-370">Source</a><a href="#impl-Deserialize%3C'de%3E-for-Box%3CRawValue%3E" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="../../serde_core/de/trait.Deserialize.html" title="trait serde_core::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#343-369">Source</a><a href="#method.deserialize-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><D>(deserializer: D) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, D::<a class="associatedtype" href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" title="type serde_core::de::Deserializer::Error">Error</a>><div class="where">where
|
||
D: <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="../../serde_core/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserializer%3C'de%3E-for-%26RawValue" class="impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#546-784">Source</a><a href="#impl-Deserializer%3C'de%3E-for-%26RawValue" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="../../serde_core/de/trait.Deserializer.html" title="trait serde_core::de::Deserializer">Deserializer</a><'de> for &'de <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#547">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="../../serde_core/de/trait.Deserializer.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a></h4></section></summary><div class='docblock'>The error type that can be returned if some error occurs during
|
||
deserialization.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_any" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#549-554">Source</a><a href="#method.deserialize_any" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_any" class="fn">deserialize_any</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Require the <code>Deserializer</code> to figure out how to drive the visitor based
|
||
on what data type is in the input. <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_any">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_bool" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#556-561">Source</a><a href="#method.deserialize_bool" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_bool" class="fn">deserialize_bool</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>bool</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i8" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#563-568">Source</a><a href="#method.deserialize_i8" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i8" class="fn">deserialize_i8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i8</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i16" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#570-575">Source</a><a href="#method.deserialize_i16" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i16" class="fn">deserialize_i16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i16</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i32" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#577-582">Source</a><a href="#method.deserialize_i32" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i32" class="fn">deserialize_i32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i32</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i64" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#584-589">Source</a><a href="#method.deserialize_i64" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_i64" class="fn">deserialize_i64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i64</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_i128" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#591-596">Source</a><a href="#method.deserialize_i128" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_i128" class="fn">deserialize_i128</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>i128</code> value. <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_i128">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u8" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#598-603">Source</a><a href="#method.deserialize_u8" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u8" class="fn">deserialize_u8</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u8</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u16" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#605-610">Source</a><a href="#method.deserialize_u16" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u16" class="fn">deserialize_u16</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u16</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u32" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#612-617">Source</a><a href="#method.deserialize_u32" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u32" class="fn">deserialize_u32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u32</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u64" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#619-624">Source</a><a href="#method.deserialize_u64" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_u64" class="fn">deserialize_u64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>u64</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_u128" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#626-631">Source</a><a href="#method.deserialize_u128" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_u128" class="fn">deserialize_u128</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an <code>u128</code> value. <a href="../../serde_core/de/trait.Deserializer.html#method.deserialize_u128">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_f32" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#633-638">Source</a><a href="#method.deserialize_f32" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_f32" class="fn">deserialize_f32</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>f32</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_f64" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#640-645">Source</a><a href="#method.deserialize_f64" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_f64" class="fn">deserialize_f64</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>f64</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_char" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#647-652">Source</a><a href="#method.deserialize_char" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_char" class="fn">deserialize_char</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a <code>char</code> value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_str" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#654-659">Source</a><a href="#method.deserialize_str" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_str" class="fn">deserialize_str</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a string value and does
|
||
not benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_str">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_string" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#661-666">Source</a><a href="#method.deserialize_string" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_string" class="fn">deserialize_string</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a string value and would
|
||
benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_string">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_bytes" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#668-673">Source</a><a href="#method.deserialize_bytes" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_bytes" class="fn">deserialize_bytes</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a byte array and does not
|
||
benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_bytes">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_byte_buf" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#675-680">Source</a><a href="#method.deserialize_byte_buf" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_byte_buf" class="fn">deserialize_byte_buf</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a byte array and would
|
||
benefit from taking ownership of buffered data owned by the
|
||
<code>Deserializer</code>. <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_byte_buf">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_option" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#682-687">Source</a><a href="#method.deserialize_option" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_option" class="fn">deserialize_option</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an optional value. <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_option">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_unit" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#689-694">Source</a><a href="#method.deserialize_unit" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_unit" class="fn">deserialize_unit</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a unit value.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_unit_struct" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#696-701">Source</a><a href="#method.deserialize_unit_struct" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_unit_struct" class="fn">deserialize_unit_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a unit struct with a
|
||
particular name.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_newtype_struct" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#703-712">Source</a><a href="#method.deserialize_newtype_struct" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_newtype_struct" class="fn">deserialize_newtype_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a newtype struct with a
|
||
particular name.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_seq" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#714-719">Source</a><a href="#method.deserialize_seq" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_seq" class="fn">deserialize_seq</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a sequence of values.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_tuple" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#721-726">Source</a><a href="#method.deserialize_tuple" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_tuple" class="fn">deserialize_tuple</a><V>(self, len: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a sequence of values and
|
||
knows how many values there are without looking at the serialized data.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_tuple_struct" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#728-738">Source</a><a href="#method.deserialize_tuple_struct" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_tuple_struct" class="fn">deserialize_tuple_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
len: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a tuple struct with a
|
||
particular name and number of fields.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_map" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#740-745">Source</a><a href="#method.deserialize_map" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_map" class="fn">deserialize_map</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a map of key-value pairs.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_struct" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#747-757">Source</a><a href="#method.deserialize_struct" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_struct" class="fn">deserialize_struct</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
fields: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>],
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting a struct with a particular
|
||
name and fields.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_enum" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#759-769">Source</a><a href="#method.deserialize_enum" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_enum" class="fn">deserialize_enum</a><V>(
|
||
self,
|
||
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>,
|
||
variants: &'static [&'static <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>],
|
||
visitor: V,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting an enum value with a
|
||
particular name and possible variants.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_identifier" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#771-776">Source</a><a href="#method.deserialize_identifier" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_identifier" class="fn">deserialize_identifier</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type is expecting the name of a struct
|
||
field or the discriminant of an enum variant.</div></details><details class="toggle method-toggle" open><summary><section id="method.deserialize_ignored_any" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#778-783">Source</a><a href="#method.deserialize_ignored_any" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_ignored_any" class="fn">deserialize_ignored_any</a><V>(self, visitor: V) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><V::<a class="associatedtype" href="../../serde_core/de/trait.Visitor.html#associatedtype.Value" title="type serde_core::de::Visitor::Value">Value</a>, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>><div class="where">where
|
||
V: <a class="trait" href="../../serde_core/de/trait.Visitor.html" title="trait serde_core::de::Visitor">Visitor</a><'de>,</div></h4></section></summary><div class='docblock'>Hint that the <code>Deserialize</code> type needs to deserialize a value whose type
|
||
doesn’t matter because it is ignored. <a href="../../serde_core/de/trait.Deserializer.html#tymethod.deserialize_ignored_any">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_human_readable" class="method trait-impl"><a class="src rightside" href="../../src/serde_core/de/mod.rs.html#1253">Source</a><a href="#method.is_human_readable" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.Deserializer.html#method.is_human_readable" class="fn">is_human_readable</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Determine whether <code>Deserialize</code> implementations should expect to
|
||
deserialize their human-readable form. <a href="../../serde_core/de/trait.Deserializer.html#method.is_human_readable">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Display-for-RawValue" class="impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#164-168">Source</a><a href="#impl-Display-for-RawValue" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#165-167">Source</a><a href="#method.fmt-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.93.1/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoDeserializer%3C'de,+Error%3E-for-%26RawValue" class="impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#538-544">Source</a><a href="#impl-IntoDeserializer%3C'de,+Error%3E-for-%26RawValue" class="anchor">§</a><h3 class="code-header">impl<'de> <a class="trait" href="../../serde_core/de/trait.IntoDeserializer.html" title="trait serde_core::de::IntoDeserializer">IntoDeserializer</a><'de, <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a>> for &'de <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Deserializer" class="associatedtype trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#539">Source</a><a href="#associatedtype.Deserializer" class="anchor">§</a><h4 class="code-header">type <a href="../../serde_core/de/trait.IntoDeserializer.html#associatedtype.Deserializer" class="associatedtype">Deserializer</a> = &'de <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h4></section></summary><div class='docblock'>The type of the deserializer being converted into.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_deserializer" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#541-543">Source</a><a href="#method.into_deserializer" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/de/trait.IntoDeserializer.html#tymethod.into_deserializer" class="fn">into_deserializer</a>(self) -> Self::<a class="associatedtype" href="../../serde_core/de/trait.IntoDeserializer.html#associatedtype.Deserializer" title="type serde_core::de::IntoDeserializer::Deserializer">Deserializer</a></h4></section></summary><div class='docblock'>Convert this value into a deserializer.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Serialize-for-RawValue" class="impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#301-310">Source</a><a href="#impl-Serialize-for-RawValue" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../serde_core/ser/trait.Serialize.html" title="trait serde_core::ser::Serialize">Serialize</a> for <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.serialize" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#302-309">Source</a><a href="#method.serialize" class="anchor">§</a><h4 class="code-header">fn <a href="../../serde_core/ser/trait.Serialize.html#tymethod.serialize" class="fn">serialize</a><S>(&self, serializer: S) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><S::<a class="associatedtype" href="../../serde_core/ser/trait.Serializer.html#associatedtype.Ok" title="type serde_core::ser::Serializer::Ok">Ok</a>, S::<a class="associatedtype" href="../../serde_core/ser/trait.Serializer.html#associatedtype.Error" title="type serde_core::ser::Serializer::Error">Error</a>><div class="where">where
|
||
S: <a class="trait" href="../../serde_core/ser/trait.Serializer.html" title="trait serde_core::ser::Serializer">Serializer</a>,</div></h4></section></summary><div class='docblock'>Serialize this value into the given Serde serializer. <a href="../../serde_core/ser/trait.Serialize.html#tymethod.serialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ToOwned-for-RawValue" class="impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#141-147">Source</a><a href="#impl-ToOwned-for-RawValue" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#142">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a>></h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="../../src/serde_json/raw.rs.html#144-146">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a></h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.63.0">1.63.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#79">Source</a></span><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: &mut Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" title="type alloc::borrow::ToOwned::Owned">Owned</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-RawValue" class="impl"><a href="#impl-Freeze-for-RawValue" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section><section id="impl-RefUnwindSafe-for-RawValue" class="impl"><a href="#impl-RefUnwindSafe-for-RawValue" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section><section id="impl-Send-for-RawValue" class="impl"><a href="#impl-Send-for-RawValue" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section><section id="impl-Sized-for-RawValue" class="impl"><a href="#impl-Sized-for-RawValue" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> for <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section><section id="impl-Sync-for-RawValue" class="impl"><a href="#impl-Sync-for-RawValue" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section><section id="impl-Unpin-for-RawValue" class="impl"><a href="#impl-Unpin-for-RawValue" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section><section id="impl-UnwindSafe-for-RawValue" class="impl"><a href="#impl-UnwindSafe-for-RawValue" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.RawValue.html" title="struct serde_json::value::RawValue">RawValue</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToString-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/string.rs.html#2864">Source</a><a href="#impl-ToString-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.93.1/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.to_string" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/string.rs.html#2866">Source</a><a href="#method.to_string" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/alloc/string/trait.ToString.html#tymethod.to_string" class="fn">to_string</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class='docblock'>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/1.93.1/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></div></details></div></details></div></section></div></main></body></html> |