1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-31 19:10:07 +01:00
actix-web/actix_web/http/header/struct.ContentDisposition.html
2024-05-27 01:16:31 +00:00

138 lines
64 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="A Content-Disposition header. It is compatible to be used either as a response header for the main body as (re)defined in RFC 6266, or as a header for a multipart body as (re)defined in RFC 7587."><title>ContentDisposition in actix_web::http::header - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="actix_web" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (bdbbb6c6a 2024-05-26)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../../actix_web/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../actix_web/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../../actix_web/index.html">actix_web</a><span class="version">4.6.0</span></h2></div><h2 class="location"><a href="#">ContentDisposition</a></h2><div class="sidebar-elems"><section><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.disposition">disposition</a></li><li><a href="#structfield.parameters">parameters</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.attachment">attachment</a></li><li><a href="#method.from_raw">from_raw</a></li><li><a href="#method.get_filename">get_filename</a></li><li><a href="#method.get_filename_ext">get_filename_ext</a></li><li><a href="#method.get_name">get_name</a></li><li><a href="#method.get_unknown">get_unknown</a></li><li><a href="#method.get_unknown_ext">get_unknown_ext</a></li><li><a href="#method.is_attachment">is_attachment</a></li><li><a href="#method.is_ext">is_ext</a></li><li><a href="#method.is_form_data">is_form_data</a></li><li><a href="#method.is_inline">is_inline</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-ContentDisposition">Clone</a></li><li><a href="#impl-Debug-for-ContentDisposition">Debug</a></li><li><a href="#impl-Display-for-ContentDisposition">Display</a></li><li><a href="#impl-Eq-for-ContentDisposition">Eq</a></li><li><a href="#impl-Header-for-ContentDisposition">Header</a></li><li><a href="#impl-PartialEq-for-ContentDisposition">PartialEq</a></li><li><a href="#impl-StructuralPartialEq-for-ContentDisposition">StructuralPartialEq</a></li><li><a href="#impl-TryIntoHeaderValue-for-ContentDisposition">TryIntoHeaderValue</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-ContentDisposition">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-ContentDisposition">RefUnwindSafe</a></li><li><a href="#impl-Send-for-ContentDisposition">Send</a></li><li><a href="#impl-Sync-for-ContentDisposition">Sync</a></li><li><a href="#impl-Unpin-for-ContentDisposition">Unpin</a></li><li><a href="#impl-UnwindSafe-for-ContentDisposition">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">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-Equivalent%3CK%3E-for-Q">Equivalent&lt;K&gt;</a></li><li><a href="#impl-Equivalent%3CK%3E-for-Q-1">Equivalent&lt;K&gt;</a></li><li><a href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a href="#impl-Instrument-for-T">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a href="#impl-Same-for-T">Same</a></li><li><a href="#impl-ToOwned-for-T">ToOwned</a></li><li><a href="#impl-ToString-for-T">ToString</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li><li><a href="#impl-TryIntoHeaderPair-for-T">TryIntoHeaderPair</a></li><li><a href="#impl-VZip%3CV%3E-for-T">VZip&lt;V&gt;</a></li><li><a href="#impl-WithSubscriber-for-T">WithSubscriber</a></li></ul></section><h2><a href="index.html">In actix_web::http::header</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Struct <a href="../../index.html">actix_web</a>::<wbr><a href="../index.html">http</a>::<wbr><a href="index.html">header</a>::<wbr><a class="struct" href="#">ContentDisposition</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/actix_web/http/header/content_disposition.rs.html#309-315">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub struct ContentDisposition {
pub disposition: <a class="enum" href="enum.DispositionType.html" title="enum actix_web::http::header::DispositionType">DispositionType</a>,
pub parameters: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="enum.DispositionParam.html" title="enum actix_web::http::header::DispositionParam">DispositionParam</a>&gt;,
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A <em>Content-Disposition</em> header. It is compatible to be used either as
<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition#as_a_response_header_for_the_main_body">a response header for the main body</a>
as (re)defined in <a href="https://datatracker.ietf.org/doc/html/rfc6266">RFC 6266</a>, or as
<a href="https://mdn.io/Content-Disposition#As_a_header_for_a_multipart_body">a header for a multipart body</a>
as (re)defined in <a href="https://datatracker.ietf.org/doc/html/rfc7578">RFC 7587</a>.</p>
<p>In a regular HTTP response, the <em>Content-Disposition</em> response header is a header indicating if
the content is expected to be displayed <em>inline</em> in the browser, that is, as a Web page or as
part of a Web page, or as an attachment, that is downloaded and saved locally, and also can be
used to attach additional metadata, such as the filename to use when saving the response payload
locally.</p>
<p>In a <em>multipart/form-data</em> body, the HTTP <em>Content-Disposition</em> general header is a header that
can be used on the subpart of a multipart body to give information about the field it applies to.
The subpart is delimited by the boundary defined in the <em>Content-Type</em> header. Used on the body
itself, <em>Content-Disposition</em> has no effect.</p>
<h2 id="abnf"><a class="doc-anchor" href="#abnf">§</a>ABNF</h2><div class="example-wrap"><pre class="language-plain"><code>content-disposition = &quot;Content-Disposition&quot; &quot;:&quot;
disposition-type *( &quot;;&quot; disposition-parm )
disposition-type = &quot;inline&quot; | &quot;attachment&quot; | disp-ext-type
; case-insensitive
disp-ext-type = token
disposition-parm = filename-parm | disp-ext-parm
filename-parm = &quot;filename&quot; &quot;=&quot; value
| &quot;filename*&quot; &quot;=&quot; ext-value
disp-ext-parm = token &quot;=&quot; value
| ext-token &quot;=&quot; ext-value
ext-token = &lt;the characters in token, followed by &quot;*&quot;&gt;
</code></pre></div><h2 id="note"><a class="doc-anchor" href="#note">§</a>Note</h2>
<p><em>filename</em> is <a href="https://datatracker.ietf.org/doc/html/rfc6266#appendix-D">not supposed</a> to
contain any non-ASCII characters when used in a <em>Content-Disposition</em> HTTP response header,
where filename* with charset UTF-8 may be used instead in case there are Unicode characters in
file names. Filename is <a href="https://datatracker.ietf.org/doc/html/rfc7578#section-4.2">acceptable</a>
to be UTF-8 encoded directly in a <em>Content-Disposition</em> header for
<em>multipart/form-data</em>, though.</p>
<p><em>filename</em> <a href="https://datatracker.ietf.org/doc/html/rfc7578#section-4.2">must not</a> be used within
<em>multipart/form-data</em>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>actix_web::http::header::{
Charset, ContentDisposition, DispositionParam, DispositionType,
ExtendedValue,
};
<span class="kw">let </span>cd1 = ContentDisposition {
disposition: DispositionType::Attachment,
parameters: <span class="macro">vec!</span>[DispositionParam::FilenameExt(ExtendedValue {
charset: Charset::Iso_8859_1, <span class="comment">// The character set for the bytes of the filename
</span>language_tag: <span class="prelude-val">None</span>, <span class="comment">// The optional language tag (see `language-tag` crate)
</span>value: <span class="string">b"\xa9 Copyright 1989.txt"</span>.to_vec(), <span class="comment">// the actual bytes of the filename
</span>})],
};
<span class="macro">assert!</span>(cd1.is_attachment());
<span class="macro">assert!</span>(cd1.get_filename_ext().is_some());
<span class="kw">let </span>cd2 = ContentDisposition {
disposition: DispositionType::FormData,
parameters: <span class="macro">vec!</span>[
DispositionParam::Name(String::from(<span class="string">"file"</span>)),
DispositionParam::Filename(String::from(<span class="string">"bill.odt"</span>)),
],
};
<span class="macro">assert_eq!</span>(cd2.get_name(), <span class="prelude-val">Some</span>(<span class="string">"file"</span>)); <span class="comment">// field name
</span><span class="macro">assert_eq!</span>(cd2.get_filename(), <span class="prelude-val">Some</span>(<span class="string">"bill.odt"</span>));
<span class="comment">// HTTP response header with Unicode characters in file names
</span><span class="kw">let </span>cd3 = ContentDisposition {
disposition: DispositionType::Attachment,
parameters: <span class="macro">vec!</span>[
DispositionParam::FilenameExt(ExtendedValue {
charset: Charset::Ext(String::from(<span class="string">"UTF-8"</span>)),
language_tag: <span class="prelude-val">None</span>,
value: String::from(<span class="string">"\u{1f600}.svg"</span>).into_bytes(),
}),
<span class="comment">// fallback for better compatibility
</span>DispositionParam::Filename(String::from(<span class="string">"Grinning-Face-Emoji.svg"</span>))
],
};
<span class="macro">assert_eq!</span>(cd3.get_filename_ext().map(|ev| ev.value.as_ref()),
<span class="prelude-val">Some</span>(<span class="string">"\u{1f600}.svg"</span>.as_bytes()));</code></pre></div>
<h2 id="security-note"><a class="doc-anchor" href="#security-note">§</a>Security Note</h2>
<p>If “filename” parameter is supplied, do not use the file name blindly, check and possibly
change to match local file system conventions if applicable, and do not use directory path
information that may be present.
See <a href="https://datatracker.ietf.org/doc/html/rfc2183#section-2.3">RFC 2183 §2.3</a>.</p>
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.disposition" class="structfield section-header"><a href="#structfield.disposition" class="anchor field">§</a><code>disposition: <a class="enum" href="enum.DispositionType.html" title="enum actix_web::http::header::DispositionType">DispositionType</a></code></span><div class="docblock"><p>The disposition type</p>
</div><span id="structfield.parameters" class="structfield section-header"><a href="#structfield.parameters" class="anchor field">§</a><code>parameters: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="enum.DispositionParam.html" title="enum actix_web::http::header::DispositionParam">DispositionParam</a>&gt;</code></span><div class="docblock"><p>Disposition parameters</p>
</div><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-ContentDisposition" class="impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#317-478">source</a><a href="#impl-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.attachment" class="method"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#329-334">source</a><h4 class="code-header">pub fn <a href="#method.attachment" class="fn">attachment</a>(filename: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Constructs a Content-Disposition header suitable for downloads.</p>
<h5 id="examples-1"><a class="doc-anchor" href="#examples-1">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>actix_web::http::header::{ContentDisposition, TryIntoHeaderValue <span class="kw">as _</span>};
<span class="kw">let </span>cd = ContentDisposition::attachment(<span class="string">"files.zip"</span>);
<span class="kw">let </span>cd_val = cd.try_into_value().unwrap();
<span class="macro">assert_eq!</span>(cd_val, <span class="string">"attachment; filename=\"files.zip\""</span>);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_raw" class="method"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#337-423">source</a><h4 class="code-header">pub fn <a href="#method.from_raw" class="fn">from_raw</a>(hv: &amp;<a class="struct" href="struct.HeaderValue.html" title="struct actix_web::http::header::HeaderValue">HeaderValue</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../../error/enum.ParseError.html" title="enum actix_web::error::ParseError">ParseError</a>&gt;</h4></section></summary><div class="docblock"><p>Parse a raw Content-Disposition header value.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_inline" class="method"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#426-428">source</a><h4 class="code-header">pub fn <a href="#method.is_inline" class="fn">is_inline</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if type is <a href="enum.DispositionType.html#variant.Inline" title="variant actix_web::http::header::DispositionType::Inline"><code>Inline</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_attachment" class="method"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#431-433">source</a><h4 class="code-header">pub fn <a href="#method.is_attachment" class="fn">is_attachment</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if type is <a href="enum.DispositionType.html#variant.Attachment" title="variant actix_web::http::header::DispositionType::Attachment"><code>Attachment</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_form_data" class="method"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#436-438">source</a><h4 class="code-header">pub fn <a href="#method.is_form_data" class="fn">is_form_data</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if type is <a href="enum.DispositionType.html#variant.FormData" title="variant actix_web::http::header::DispositionType::FormData"><code>FormData</code></a>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_ext" class="method"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#441-446">source</a><h4 class="code-header">pub fn <a href="#method.is_ext" class="fn">is_ext</a>(&amp;self, disp_type: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if type is <a href="enum.DispositionType.html#variant.Ext" title="variant actix_web::http::header::DispositionType::Ext"><code>Ext</code></a> and the <code>disp_type</code> matches.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_name" class="method"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#449-451">source</a><h4 class="code-header">pub fn <a href="#method.get_name" class="fn">get_name</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;</h4></section></summary><div class="docblock"><p>Return the value of <em>name</em> if exists.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_filename" class="method"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#454-458">source</a><h4 class="code-header">pub fn <a href="#method.get_filename" class="fn">get_filename</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;</h4></section></summary><div class="docblock"><p>Return the value of <em>filename</em> if exists.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_filename_ext" class="method"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#461-465">source</a><h4 class="code-header">pub fn <a href="#method.get_filename_ext" class="fn">get_filename_ext</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.ExtendedValue.html" title="struct actix_web::http::header::ExtendedValue">ExtendedValue</a>&gt;</h4></section></summary><div class="docblock"><p>Return the value of <em>filename*</em> if exists.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_unknown" class="method"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#468-471">source</a><h4 class="code-header">pub fn <a href="#method.get_unknown" class="fn">get_unknown</a>(&amp;self, name: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;</h4></section></summary><div class="docblock"><p>Return the value of the parameter which the <code>name</code> matches.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_unknown_ext" class="method"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#474-477">source</a><h4 class="code-header">pub fn <a href="#method.get_unknown_ext" class="fn">get_unknown_ext</a>(&amp;self, name: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.ExtendedValue.html" title="struct actix_web::http::header::ExtendedValue">ExtendedValue</a>&gt;</h4></section></summary><div class="docblock"><p>Return the value of the extended parameter which the <code>name</code> matches.</p>
</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-ContentDisposition" class="impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#308">source</a><a href="#impl-Clone-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</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/actix_web/http/header/content_disposition.rs.html#308">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/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/nightly/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/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-ContentDisposition" class="impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#308">source</a><a href="#impl-Debug-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</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/actix_web/http/header/content_disposition.rs.html#308">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/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/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Display-for-ContentDisposition" class="impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#580-587">source</a><a href="#impl-Display-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</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/actix_web/http/header/content_disposition.rs.html#581-586">source</a><a href="#method.fmt-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/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/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Header-for-ContentDisposition" class="impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#490-502">source</a><a href="#impl-Header-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Header.html" title="trait actix_web::http::header::Header">Header</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.name" class="method trait-impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#491-493">source</a><a href="#method.name" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Header.html#tymethod.name" class="fn">name</a>() -&gt; <a class="struct" href="struct.HeaderName.html" title="struct actix_web::http::header::HeaderName">HeaderName</a></h4></section></summary><div class='docblock'>Returns the name of the header field.</div></details><details class="toggle method-toggle" open><summary><section id="method.parse" class="method trait-impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#495-501">source</a><a href="#method.parse" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Header.html#tymethod.parse" class="fn">parse</a>&lt;T: <a class="trait" href="../../trait.HttpMessage.html" title="trait actix_web::HttpMessage">HttpMessage</a>&gt;(msg: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;T</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../../error/enum.ParseError.html" title="enum actix_web::error::ParseError">ParseError</a>&gt;</h4></section></summary><div class='docblock'>Parse the header from a HTTP message.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-ContentDisposition" class="impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#308">source</a><a href="#impl-PartialEq-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#308">source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" 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/nightly/src/core/cmp.rs.html#263">source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Rhs</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-TryIntoHeaderValue-for-ContentDisposition" class="impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#480-488">source</a><a href="#impl-TryIntoHeaderValue-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TryIntoHeaderValue.html" title="trait actix_web::http::header::TryIntoHeaderValue">TryIntoHeaderValue</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="trait.TryIntoHeaderValue.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="struct.InvalidHeaderValue.html" title="struct actix_web::http::header::InvalidHeaderValue">InvalidHeaderValue</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into_value" class="method trait-impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#483-487">source</a><a href="#method.try_into_value" class="anchor">§</a><h4 class="code-header">fn <a href="trait.TryIntoHeaderValue.html#tymethod.try_into_value" class="fn">try_into_value</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.HeaderValue.html" title="struct actix_web::http::header::HeaderValue">HeaderValue</a>, Self::<a class="associatedtype" href="trait.TryIntoHeaderValue.html#associatedtype.Error" title="type actix_web::http::header::TryIntoHeaderValue::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Try to convert value to a HeaderValue.</div></details></div></details><section id="impl-Eq-for-ContentDisposition" class="impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#308">source</a><a href="#impl-Eq-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h3></section><section id="impl-StructuralPartialEq-for-ContentDisposition" class="impl"><a class="src rightside" href="../../../src/actix_web/http/header/content_disposition.rs.html#308">source</a><a href="#impl-StructuralPartialEq-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h3></section></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-ContentDisposition" class="impl"><a href="#impl-Freeze-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h3></section><section id="impl-RefUnwindSafe-for-ContentDisposition" class="impl"><a href="#impl-RefUnwindSafe-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h3></section><section id="impl-Send-for-ContentDisposition" class="impl"><a href="#impl-Send-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h3></section><section id="impl-Sync-for-ContentDisposition" class="impl"><a href="#impl-Sync-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h3></section><section id="impl-Unpin-for-ContentDisposition" class="impl"><a href="#impl-Unpin-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</a></h3></section><section id="impl-UnwindSafe-for-ContentDisposition" class="impl"><a href="#impl-UnwindSafe-for-ContentDisposition" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.ContentDisposition.html" title="struct actix_web::http::header::ContentDisposition">ContentDisposition</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/nightly/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/src/core/any.rs.html#141">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/src/core/borrow.rs.html#208">source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/src/core/borrow.rs.html#210">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/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/nightly/src/core/borrow.rs.html#216">source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/src/core/borrow.rs.html#217">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-Q" class="impl"><a href="#impl-Equivalent%3CK%3E-for-Q" class="anchor">§</a><h3 class="code-header">impl&lt;Q, K&gt; Equivalent&lt;K&gt; for Q<div class="where">where
Q: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + ?<a class="trait" href="https://doc.rust-lang.org/nightly/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.equivalent" class="method trait-impl"><a href="#method.equivalent" class="anchor">§</a><h4 class="code-header">fn <a class="fn">equivalent</a>(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;K</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if this value is equivalent to the given key. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-Q-1" class="impl"><a href="#impl-Equivalent%3CK%3E-for-Q-1" class="anchor">§</a><h3 class="code-header">impl&lt;Q, K&gt; Equivalent&lt;K&gt; for Q<div class="where">where
Q: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + ?<a class="trait" href="https://doc.rust-lang.org/nightly/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.equivalent-1" class="method trait-impl"><a href="#method.equivalent-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">equivalent</a>(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;K</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Compare self to <code>key</code> and return <code>true</code> if they are equal.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#765">source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#768">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#748-750">source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#758">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.17.0/src/typenum/type_operators.rs.html#34">source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.17.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a> for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.17.0/typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#83-85">source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</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="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#88">source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/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"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#92">source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">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/nightly/src/alloc/string.rs.html#2552">source</a><a href="#impl-ToString-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/src/alloc/string.rs.html#2558">source</a><a href="#method.to_string" class="anchor">§</a><h4 class="code-header">default fn <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string" class="fn">to_string</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/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/nightly/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#805-807">source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#812">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#790-792">source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#797">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryIntoHeaderPair-for-T" class="impl"><a class="src rightside" href="../../../src/actix_http/header/into_pair.rs.html#113">source</a><a href="#impl-TryIntoHeaderPair-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.TryIntoHeaderPair.html" title="trait actix_web::http::header::TryIntoHeaderPair">TryIntoHeaderPair</a> for T<div class="where">where
T: <a class="trait" href="trait.Header.html" title="trait actix_web::http::header::Header">Header</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a href="trait.TryIntoHeaderPair.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;T as <a class="trait" href="trait.TryIntoHeaderValue.html" title="trait actix_web::http::header::TryIntoHeaderValue">TryIntoHeaderValue</a>&gt;::<a class="associatedtype" href="trait.TryIntoHeaderValue.html#associatedtype.Error" title="type actix_web::http::header::TryIntoHeaderValue::Error">Error</a></h4></section><section id="method.try_into_pair" class="method trait-impl"><a class="src rightside" href="../../../src/actix_http/header/into_pair.rs.html#117">source</a><a href="#method.try_into_pair" class="anchor">§</a><h4 class="code-header">fn <a href="trait.TryIntoHeaderPair.html#tymethod.try_into_pair" class="fn">try_into_pair</a>(
self
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;(<a class="struct" href="struct.HeaderName.html" title="struct actix_web::http::header::HeaderName">HeaderName</a>, <a class="struct" href="struct.HeaderValue.html" title="struct actix_web::http::header::HeaderValue">HeaderValue</a>), &lt;T as <a class="trait" href="trait.TryIntoHeaderPair.html" title="trait actix_web::http::header::TryIntoHeaderPair">TryIntoHeaderPair</a>&gt;::<a class="associatedtype" href="trait.TryIntoHeaderPair.html#associatedtype.Error" title="type actix_web::http::header::TryIntoHeaderPair::Error">Error</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-T" class="impl"><a href="#impl-VZip%3CV%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;V, T&gt; VZip&lt;V&gt; for T<div class="where">where
V: MultiLane&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -&gt; V</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; WithDispatch&lt;Self&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Dispatch&gt;,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -&gt; WithDispatch&lt;Self&gt;</h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details></div></section></div></main></body></html>