blob: 2dcb8c537a420d62c155a828190d71843f4e935a [file] [log] [blame]
<!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 Protocol Buffers message."><meta name="keywords" content="rust, rustlang, rust-lang, Message"><title>Message in prost - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.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">&#9776;</button><a class="sidebar-logo" href="../prost/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../prost/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Message</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.clear">clear</a></li><li><a href="#tymethod.encoded_len">encoded_len</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.decode">decode</a></li><li><a href="#method.decode_length_delimited">decode_length_delimited</a></li><li><a href="#method.encode">encode</a></li><li><a href="#method.encode_length_delimited">encode_length_delimited</a></li><li><a href="#method.encode_length_delimited_to_vec">encode_length_delimited_to_vec</a></li><li><a href="#method.encode_to_vec">encode_to_vec</a></li><li><a href="#method.merge">merge</a></li><li><a href="#method.merge_length_delimited">merge_length_delimited</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Message-for-()">()</a></li><li><a href="#impl-Message-for-Box%3CM%3E">Box&lt;M&gt;</a></li><li><a href="#impl-Message-for-Bytes">Bytes</a></li><li><a href="#impl-Message-for-String">String</a></li><li><a href="#impl-Message-for-Vec%3Cu8%3E">Vec&lt;u8&gt;</a></li><li><a href="#impl-Message-for-bool">bool</a></li><li><a href="#impl-Message-for-f32">f32</a></li><li><a href="#impl-Message-for-f64">f64</a></li><li><a href="#impl-Message-for-i32">i32</a></li><li><a href="#impl-Message-for-i64">i64</a></li><li><a href="#impl-Message-for-u32">u32</a></li><li><a href="#impl-Message-for-u64">u64</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In prost</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Trait <a href="index.html">prost</a>::<wbr><a class="trait" href="#">Message</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/prost/message.rs.html#14-163">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust trait"><code>pub trait Message: Debug + Send + Sync {
fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize;
<span class="item-spacer"></span> fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self);
fn <a href="#method.encode" class="fnname">encode</a>&lt;B&gt;(&amp;self, buf: &amp;mut B) -&gt; Result&lt;(), <a class="struct" href="struct.EncodeError.html" title="struct prost::EncodeError">EncodeError</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_mut/trait.BufMut.html" title="trait bytes::buf::buf_mut::BufMut">BufMut</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.encode_to_vec" class="fnname">encode_to_vec</a>(&amp;self) -&gt; Vec&lt;u8&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.encode_length_delimited" class="fnname">encode_length_delimited</a>&lt;B&gt;(&amp;self, buf: &amp;mut B) -&gt; Result&lt;(), <a class="struct" href="struct.EncodeError.html" title="struct prost::EncodeError">EncodeError</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_mut/trait.BufMut.html" title="trait bytes::buf::buf_mut::BufMut">BufMut</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.encode_length_delimited_to_vec" class="fnname">encode_length_delimited_to_vec</a>(&amp;self) -&gt; Vec&lt;u8&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.decode" class="fnname">decode</a>&lt;B&gt;(buf: B) -&gt; Result&lt;Self, <a class="struct" href="struct.DecodeError.html" title="struct prost::DecodeError">DecodeError</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: Default</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.decode_length_delimited" class="fnname">decode_length_delimited</a>&lt;B&gt;(buf: B) -&gt; Result&lt;Self, <a class="struct" href="struct.DecodeError.html" title="struct prost::DecodeError">DecodeError</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: Default</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.merge" class="fnname">merge</a>&lt;B&gt;(&amp;mut self, buf: B) -&gt; Result&lt;(), <a class="struct" href="struct.DecodeError.html" title="struct prost::DecodeError">DecodeError</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.merge_length_delimited" class="fnname">merge_length_delimited</a>&lt;B&gt;(&amp;mut self, buf: B) -&gt; Result&lt;(), <a class="struct" href="struct.DecodeError.html" title="struct prost::DecodeError">DecodeError</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized</span>,
{ ... }
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A Protocol Buffers message.</p>
</div></details><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.encoded_len" class="method has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#42">source</a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section></summary><div class="docblock"><p>Returns the encoded length of the message without a length delimiter.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.clear" class="method has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#162">source</a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Clears the message, resetting all fields to their default.</p>
</div></details></div><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.encode" class="method has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#47-60">source</a><h4 class="code-header">fn <a href="#method.encode" class="fnname">encode</a>&lt;B&gt;(&amp;self, buf: &amp;mut B) -&gt; Result&lt;(), <a class="struct" href="struct.EncodeError.html" title="struct prost::EncodeError">EncodeError</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_mut/trait.BufMut.html" title="trait bytes::buf::buf_mut::BufMut">BufMut</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,</span></h4></section></summary><div class="docblock"><p>Encodes the message to a buffer.</p>
<p>An error will be returned if the buffer does not have sufficient capacity.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.encode_to_vec" class="method has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#64-72">source</a><h4 class="code-header">fn <a href="#method.encode_to_vec" class="fnname">encode_to_vec</a>(&amp;self) -&gt; Vec&lt;u8&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,</span></h4></section></summary><div class="docblock"><p>Encodes the message to a newly allocated buffer.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.encode_length_delimited" class="method has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#77-91">source</a><h4 class="code-header">fn <a href="#method.encode_length_delimited" class="fnname">encode_length_delimited</a>&lt;B&gt;(&amp;self, buf: &amp;mut B) -&gt; Result&lt;(), <a class="struct" href="struct.EncodeError.html" title="struct prost::EncodeError">EncodeError</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_mut/trait.BufMut.html" title="trait bytes::buf::buf_mut::BufMut">BufMut</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,</span></h4></section></summary><div class="docblock"><p>Encodes the message with a length-delimiter to a buffer.</p>
<p>An error will be returned if the buffer does not have sufficient capacity.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.encode_length_delimited_to_vec" class="method has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#95-105">source</a><h4 class="code-header">fn <a href="#method.encode_length_delimited_to_vec" class="fnname">encode_length_delimited_to_vec</a>(&amp;self) -&gt; Vec&lt;u8&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,</span></h4></section></summary><div class="docblock"><p>Encodes the message with a length-delimiter to a newly allocated buffer.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.decode" class="method has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#110-117">source</a><h4 class="code-header">fn <a href="#method.decode" class="fnname">decode</a>&lt;B&gt;(buf: B) -&gt; Result&lt;Self, <a class="struct" href="struct.DecodeError.html" title="struct prost::DecodeError">DecodeError</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Default,</span></h4></section></summary><div class="docblock"><p>Decodes an instance of the message from a buffer.</p>
<p>The entire buffer will be consumed.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.decode_length_delimited" class="method has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#120-128">source</a><h4 class="code-header">fn <a href="#method.decode_length_delimited" class="fnname">decode_length_delimited</a>&lt;B&gt;(buf: B) -&gt; Result&lt;Self, <a class="struct" href="struct.DecodeError.html" title="struct prost::DecodeError">DecodeError</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Default,</span></h4></section></summary><div class="docblock"><p>Decodes a length-delimited instance of the message from the buffer.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.merge" class="method has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#133-144">source</a><h4 class="code-header">fn <a href="#method.merge" class="fnname">merge</a>&lt;B&gt;(&amp;mut self, buf: B) -&gt; Result&lt;(), <a class="struct" href="struct.DecodeError.html" title="struct prost::DecodeError">DecodeError</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,</span></h4></section></summary><div class="docblock"><p>Decodes an instance of the message from a buffer, and merges it into <code>self</code>.</p>
<p>The entire buffer will be consumed.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.merge_length_delimited" class="method has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#148-159">source</a><h4 class="code-header">fn <a href="#method.merge_length_delimited" class="fnname">merge_length_delimited</a>&lt;B&gt;(&amp;mut self, buf: B) -&gt; Result&lt;(), <a class="struct" href="struct.DecodeError.html" title="struct prost::DecodeError">DecodeError</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Sized,</span></h4></section></summary><div class="docblock"><p>Decodes a length-delimited instance of the message from buffer, and
merges it into <code>self</code>.</p>
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-Box%3CM%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#165-193">source</a><a href="#impl-Message-for-Box%3CM%3E" class="anchor"></a><h3 class="code-header">impl&lt;M&gt; <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for Box&lt;M&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;M: <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a>,</span></h3></section></summary><div class="impl-items"><section id="method.encoded_len" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#187-189">source</a><a href="#method.encoded_len" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/message.rs.html#190-192">source</a><a href="#method.clear" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-bool" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#22-57">source</a><a href="#impl-Message-for-bool" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for bool</h3></section></summary><div class="docblock"><p><code>google.protobuf.BoolValue</code></p>
</div><div class="impl-items"><section id="method.encoded_len-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#47-53">source</a><a href="#method.encoded_len-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#54-56">source</a><a href="#method.clear-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-u32" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#60-95">source</a><a href="#impl-Message-for-u32" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for u32</h3></section></summary><div class="docblock"><p><code>google.protobuf.UInt32Value</code></p>
</div><div class="impl-items"><section id="method.encoded_len-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#85-91">source</a><a href="#method.encoded_len-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#92-94">source</a><a href="#method.clear-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-u64" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#98-133">source</a><a href="#impl-Message-for-u64" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for u64</h3></section></summary><div class="docblock"><p><code>google.protobuf.UInt64Value</code></p>
</div><div class="impl-items"><section id="method.encoded_len-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#123-129">source</a><a href="#method.encoded_len-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#130-132">source</a><a href="#method.clear-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-i32" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#136-171">source</a><a href="#impl-Message-for-i32" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for i32</h3></section></summary><div class="docblock"><p><code>google.protobuf.Int32Value</code></p>
</div><div class="impl-items"><section id="method.encoded_len-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#161-167">source</a><a href="#method.encoded_len-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#168-170">source</a><a href="#method.clear-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-i64" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#174-209">source</a><a href="#impl-Message-for-i64" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for i64</h3></section></summary><div class="docblock"><p><code>google.protobuf.Int64Value</code></p>
</div><div class="impl-items"><section id="method.encoded_len-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#199-205">source</a><a href="#method.encoded_len-5" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#206-208">source</a><a href="#method.clear-5" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-f32" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#212-247">source</a><a href="#impl-Message-for-f32" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for f32</h3></section></summary><div class="docblock"><p><code>google.protobuf.FloatValue</code></p>
</div><div class="impl-items"><section id="method.encoded_len-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#237-243">source</a><a href="#method.encoded_len-6" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#244-246">source</a><a href="#method.clear-6" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-f64" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#250-285">source</a><a href="#impl-Message-for-f64" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for f64</h3></section></summary><div class="docblock"><p><code>google.protobuf.DoubleValue</code></p>
</div><div class="impl-items"><section id="method.encoded_len-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#275-281">source</a><a href="#method.encoded_len-7" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#282-284">source</a><a href="#method.clear-7" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-String" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#288-323">source</a><a href="#impl-Message-for-String" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for String</h3></section></summary><div class="docblock"><p><code>google.protobuf.StringValue</code></p>
</div><div class="impl-items"><section id="method.encoded_len-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#313-319">source</a><a href="#method.encoded_len-8" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#320-322">source</a><a href="#method.clear-8" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-Vec%3Cu8%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#326-361">source</a><a href="#impl-Message-for-Vec%3Cu8%3E" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for Vec&lt;u8&gt;</h3></section></summary><div class="docblock"><p><code>google.protobuf.BytesValue</code></p>
</div><div class="impl-items"><section id="method.encoded_len-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#351-357">source</a><a href="#method.encoded_len-9" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#358-360">source</a><a href="#method.clear-9" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-Bytes" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#364-399">source</a><a href="#impl-Message-for-Bytes" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for <a class="struct" href="../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a></h3></section></summary><div class="docblock"><p><code>google.protobuf.BytesValue</code></p>
</div><div class="impl-items"><section id="method.encoded_len-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#389-395">source</a><a href="#method.encoded_len-10" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#396-398">source</a><a href="#method.clear-10" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Message-for-()" class="impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#402-424">source</a><a href="#impl-Message-for-()" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Message.html" title="trait prost::Message">Message</a> for ()</h3></section></summary><div class="docblock"><p><code>google.protobuf.Empty</code></p>
</div><div class="impl-items"><section id="method.encoded_len-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#420-422">source</a><a href="#method.encoded_len-11" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.encoded_len" class="fnname">encoded_len</a>(&amp;self) -&gt; usize</h4></section><section id="method.clear-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../src/prost/types.rs.html#423">source</a><a href="#method.clear-11" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div id="implementors-list"></div><script src="../implementors/prost/message/trait.Message.js" data-ignore-extern-crates="bytes,alloc,core" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="prost" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>