<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="`Authorization` header, defined in RFC 7235"><metaname="keywords"content="rust, rustlang, rust-lang, Authorization"><title>Authorization in actix_web_httpauth::headers::authorization - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../../SourceSerif4-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../../FiraSans-Regular.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../../FiraSans-Medium.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../../SourceCodePro-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../../SourceSerif4-Bold.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../../SourceCodePro-Semibold.ttf.woff2"><linkrel="stylesheet"href="../../../normalize.css"><linkrel="stylesheet"href="../../../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"href="../../../ayu.css"disabled><linkrel="stylesheet"href="../../../dark.css"disabled><linkrel="stylesheet"href="../../../light.css"id="themeStyle"><scriptid="default-settings"></script><scriptsrc="../../../storage.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../../../main.js"></script><noscript><linkrel="stylesheet"href="../../../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../../../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../../../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../../../favicon.svg"></head><bodyclass="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button><aclass="sidebar-logo"href="../../../actix_web_httpauth/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../../../rust-logo.svg"alt="logo"></div></a><h2class="location"></h2></nav><navclass="sidebar"><aclass="sidebar-logo"href="../../../actix_web_httpauth/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../../../rust-logo.svg"alt="logo"></div></a><h2class="location"><ahref="#">Authorization</a></h2><divclass="sidebar-elems"><section><divclass="block"><h3class="sidebar-title"><ahref="#implementations">Methods</a></h3><ul><li><ahref="#method.into_scheme">into_scheme</a></li></ul></div><divclass="block"><h3class="sidebar-title"><ahref="#trait-implementations">Trait Implementations</a></h3><ul><li><ahref="#impl-AsMut%3CS%3E-for-Authorization%3CS%3E">AsMut<S></a></li><li><ahref="#impl-AsRef%3CS%3E-for-Authorization%3CS%3E">AsRef<S></a></li><li><ahref="#impl-Clone-for-Authorization%3CS%3E">Clone</a></li><li><ahref="#impl-Debug-for-Authorization%3CS%3E">Debug</a></li><li><ahref="#impl-Default-for-Authorization%3CS%3E">Default</a></li><li><ahref="#impl-Display-for-Authorization%3CS%3E">Display</a></li><li><ahref="#impl-Eq-for-Authorization%3CS%3E">Eq</a></li><li><ahref="#impl-From%3CS%3E-for-Authorization%3CS%3E">From<S></a></li><li><ahref="#impl-Hash-for-Authorization%3CS%3E">Hash</a></li><li><ahref="#impl-Header-for-Authorization%3CS%3E">Header</a></li><li><ahref="#impl-Ord-for-Authorization%3CS%3E">Ord</a></li><li><ahref="#impl-PartialEq%3CAuthorization%3CS%3E%3E-for-Authorization%3CS%3E">PartialEq<Authorization<S>></a></li><li><ahref="#impl-PartialOrd%3CAuthorization%3CS%3E%3E-for-Authorization%3CS%3E">PartialOrd<Authorization<S>></a></li><li><ahref="#impl-StructuralEq-for-Authorization%3CS%3E">StructuralEq</a></li><li><ahref="#impl-StructuralPartialEq-for-Authorization%3CS%3E">StructuralPartialEq</a></li><li><ahref="#impl-TryIntoHeaderValue-for-Authorization%3CS%3E">TryIntoHeaderValue</a></li></ul></div>
</div></details></div></details></div><h2id="trait-implementations"class="small-section-header">Trait Implementations<ahref="#trait-implementations"class="anchor"></a></h2><divid="trait-implementations-list"><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-AsMut%3CS%3E-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#52-56">source</a><ahref="#impl-AsMut%3CS%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html"title="trait core::convert::AsMut">AsMut</a><S> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.as_mut"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#53-55">source</a><ahref="#method.as_mut"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html#tymethod.as_mut"class="fnname">as_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>S</h4></section></summary><divclass='docblock'><p>Converts this type into a mutable reference of the (usually inferred) input type.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-AsRef%3CS%3E-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#46-50">source</a><ahref="#impl-AsRef%3CS%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html"title="trait core::convert::AsRef">AsRef</a><S> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.as_ref"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#47-49">source</a><ahref="#method.as_ref"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref"class="fnname">as_ref</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>S</h4></section></summary><divclass='docblock'><p>Converts this type into a shared reference of the (usually inferred) input type.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Clone-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#impl-Clone-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a> + <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.clone"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#method.clone"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone"class="fnname">clone</a>(&self) -><aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h4></section></summary><divclass='docblock'><p>Returns a copy of the value. <ahref="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Debug-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#impl-Debug-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> + <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#method.fmt"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt"class="fnname">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Default-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#impl-Default-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html"title="trait core::default::Default">Default</a> + <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html"title="trait core::default::Default">Default</a> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.default"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#method.default"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default"class="fnname">default</a>() -><aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h4></section></summary><divclass='docblock'><p>Returns the “default value” for a type. <ahref="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Display-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#58-62">source</a><ahref="#impl-Display-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt-1"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#59-61">source</a><ahref="#method.fmt-1"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt"class="fnname">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-From%3CS%3E-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#40-44">source</a><ahref="#impl-From%3CS%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><S> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#41-43">source</a><ahref="#method.from"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from"class="fnname">from</a>(scheme: S) -><aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h4></section></summary><divclass='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Hash-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#impl-Hash-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.hash"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#method.hash"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash"class="fnname">hash</a><__H: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html"title="trait core::hash::Hasher">Hasher</a>>(&self, state: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>__H)</h4></section></summary><divclass='docblock'><p>Feeds this value into the given <ahref="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html"title="Hasher"><code>Hasher</code></a>. <ahref="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.hash_slice"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.3.0">1.3.0</span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#237-239">source</a></span><ahref="#method.hash_slice"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice"class="fnname">hash_slice</a><H>(data: &<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[Self]</a>, state: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>H)<spanclass="where fmt-newline">where<br> H: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html"title="trait core::hash::Hasher">Hasher</a>,</span></h4></section></summary><divclass='docblock'><p>Feeds a slice of this type into the given <ahref="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html"title="Hasher"><code>Hasher</code></a>. <ahref="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Header-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#64-76">source</a><ahref="#impl-Header-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>> Header for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.name"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#66-68">source</a><ahref="#method.name"class="anchor"></a><h4class="code-header">fn <aclass="fnname">name</a>() -><aclass="struct"href="https://docs.rs/http/0.2.8/http/header/name/struct.HeaderName.html"title="struct http::header::name::HeaderName">HeaderName</a></h4></section></summary><divclass='docblock'><p>Returns the name of the header field.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.parse"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#70-75">source</a><ahref="#method.parse"class="anchor"></a><h4class="code-header">fn <aclass="fnname">parse</a><T: HttpMessage>(msg: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self, ParseError></h4></section></summary><divclass='docblock'><p>Parse the header from a HTTP message.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Ord-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#impl-Ord-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a> + <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.cmp"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#method.cmp"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp"class="fnname">cmp</a>(&self, other: &<aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html"title="enum core::cmp::Ordering">Ordering</a></h4></section></summary><divclass='docblock'><p>This method returns an <ahref="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html"title="Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.max"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.21.0">1.21.0</span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#803-806">source</a></span><ahref="#method.max"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max"class="fnname">max</a>(self, other: Self) -> Self</h4></section></summary><divclass='docblock'><p>Compares and returns the maximum of two values. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.min"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.21.0">1.21.0</span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#830-833">source</a></span><ahref="#method.min"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min"class="fnname">min</a>(self, other: Self) -> Self</h4></section></summary><divclass='docblock'><p>Compares and returns the minimum of two values. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.clamp"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.50.0">1.50.0</span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#862-866">source</a></span><ahref="#method.clamp"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp"class="fnname">clamp</a>(self, min: Self, max: Self) -> Self<spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html"title="trait core::cmp::PartialOrd">PartialOrd</a><Self>,</span></h4></section></summary><divclass='docblock'><p>Restrict a value to a certain interval. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-PartialEq%3CAuthorization%3CS%3E%3E-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#impl-PartialEq%3CAuthorization%3CS%3E%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a> + <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a><<aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S>> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.eq"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#method.eq"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq"class="fnname">eq</a>(&self, other: &<aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.ne"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#235">source</a></span><ahref="#method.ne"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne"class="fnname">ne</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.lt"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1125">source</a></span><ahref="#method.lt"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt"class="fnname">lt</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.le"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1144">source</a></span><ahref="#method.le"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le"class="fnname">le</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code><=</code>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.gt"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1162">source</a></span><ahref="#method.gt"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt"class="fnname">gt</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code> operator. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.ge"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1181">source</a></span><ahref="#method.ge"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge"class="fnname">ge</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>>=</code>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-TryIntoHeaderValue-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#78-84">source</a><ahref="#impl-TryIntoHeaderValue-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>> TryIntoHeaderValue for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Error"class="anchor"></a><h4class="code-header">type <aclass="associatedtype">Error</a> = <S as TryIntoHeaderValue>::Error</h4></section></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.try_into_value"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#81-83">source</a><ahref="#method.try_into_value"class="anchor"></a><h4class="code-header">fn <aclass="fnname">try_into_value</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="https://docs.rs/http/0.2.8/http/header/value/struct.HeaderValue.html"title="struct http::header::value::HeaderValue">HeaderValue</a>, Self::Error></h4></section></summary><divclass='docblock'><p>Try to convert value to a HeaderValue.</p>
</div></details></div></details><sectionid="impl-Eq-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#impl-Eq-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> + <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section><sectionid="impl-StructuralEq-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#impl-StructuralEq-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html"title="trait core::marker::StructuralEq">StructuralEq</a> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section><sectionid="impl-StructuralPartialEq-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="../../../src/actix_web_httpauth/headers/authorization/header.rs.html#30">source</a><ahref="#impl-StructuralPartialEq-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S: <aclass="trait"href="trait.Scheme.html"title="trait actix_web_httpauth::headers::authorization::Scheme">Scheme</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html"title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section></div><h2id="synthetic-implementations"class="small-section-header">Auto Trait Implementations<ahref="#synthetic-implementations"class="anchor"></a></h2><divid="synthetic-implementations-list"><sectionid="impl-RefUnwindSafe-for-Authorization%3CS%3E"class="impl has-srclink"><ahref="#impl-RefUnwindSafe-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S><aclass="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 <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S><spanclass="where fmt-newline">where<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html"title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</span></h3></section><sectionid="impl-Send-for-Authorization%3CS%3E"class="impl has-srclink"><ahref="#impl-Send-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S><aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> for <aclass="struct"href="struct.Authorization.html"title="struct actix_web_httpauth::headers::authorization::Authorization">Authorization</a><S></h3></section><sectionid="impl-Sync-for-Authorization%3CS%3E"class="impl has-srclink"><ahref="#impl-Sync-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<S><acla
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Borrow%3CT%3E-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209">source</a><ahref="#impl-Borrow%3CT%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T<spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.borrow"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/91522"title="Tracking issue for const_borrow">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211">source</a></span><ahref="#method.borrow"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow"class="fnname">borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</h4></section></summary><divclass='docblock'><p>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-BorrowMut%3CT%3E-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218">source</a><ahref="#impl-BorrowMut%3CT%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.borrow_mut"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/91522"title="Tracking issue for const_borrow">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219">source</a></span><ahref="#method.borrow_mut"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"class="fnname">borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</h4></section></summary><divclass='docblock'><p>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-CallHasher-for-Authorization%3CS%3E"class="impl has-srclink"><ahref="#impl-CallHasher-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T> CallHasher for T<spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><divclass="impl-items"><sectionid="method.get_hash"class="method trait-impl has-srclink"><ahref="#method.get_hash"class="anchor"></a><h4class="code-header">default fn <aclass="fnname">get_hash</a><H, B>(value: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>H, build_hasher: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>B) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a><spanclass="where fmt-newline">where<br> H: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,<br> B: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html"title="trait core::hash::BuildHasher">BuildHasher</a>,</span></h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Equivalent%3CK%3E-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/indexmap/1/src/indexmap/equivalent.rs.html#18">source</a><ahref="#impl-Equivalent%3CK%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<Q, K><aclass="trait"href="https://docs.rs/indexmap/1/indexmap/equivalent/trait.Equivalent.html"title="trait indexmap::equivalent::Equivalent">Equivalent</a><K> for Q<spanclass="where fmt-newline">where<br> Q: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,<br> K: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><Q> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.equivalent"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/indexmap/1/src/indexmap/equivalent.rs.html#24">source</a><ahref="#method.equivalent"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/indexmap/1/indexmap/equivalent/trait.Equivalent.html#tymethod.equivalent"class="fnname">equivalent</a>(&self, key: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>K) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>Compare self to <code>key</code> and return <code>true</code> if they are equal.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-From%3C!%3E-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#577">source</a><ahref="#impl-From%3C!%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.never.html">!</a>> for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.from-1"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/88674"title="Tracking issue for const_convert">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#578">source</a></span><ahref="#method.from-1"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from"class="fnname">from</a>(t: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.never.html">!</a>) -> T</h4></section></summary><divclass='docblock'><p>Converts to this type from the input type.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#559">source</a><ahref="#impl-From%3CT%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.from-2"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/88674"title="Tracking issue for const_convert">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#562">source</a></span><ahref="#method.from-2"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from"class="fnname">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Instrument-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.36/src/tracing/instrument.rs.html#276">source</a><ahref="#impl-Instrument-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://docs.rs/tracing/0.1.36/tracing/instrument/trait.Instrument.html"title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.instrument"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.36/src/tracing/instrument.rs.html#82">source</a><ahref="#method.instrument"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.36/tracing/instrument/trait.Instrument.html#method.instrument"class="fnname">instrument</a>(self, span: <aclass="struct"href="https://docs.rs/tracing/0.1.36/tracing/span/struct.Span.html"title="struct tracing::span::Span">Span</a>) -><aclass="struct"href="https://docs.rs/tracing/0.1.36/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'><p>Instruments this type with the provided <ahref="https://docs.rs/tracing/0.1.36/tracing/span/struct.Span.html"title="Span"><code>Span</code></a>, returning an
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.in_current_span"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.36/src/tracing/instrument.rs.html#121">source</a><ahref="#method.in_current_span"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.36/tracing/instrument/trait.Instrument.html#method.in_current_span"class="fnname">in_current_span</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.36/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'><p>Instruments this type with the <ahref="https://docs.rs/tracing/0.1.36/tracing/span/struct.Span.html#method.current">current</a><ahref="https://docs.rs/tracing/0.1.36/tracing/span/struct.Span.html"><code>Span</code></a>, returning an
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.to_owned"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#88">source</a><ahref="#method.to_owned"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned"class="fnname">to_owned</a>(&self) -> T</h4></section></summary><divclass='docblock'><p>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.clone_into"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#92">source</a><ahref="#method.clone_into"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into"class="fnname">clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</h4></section></summary><divclass='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-ToString-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2500">source</a><ahref="#impl-ToString-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html"title="trait alloc::string::ToString">ToString</a> for T<spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.to_string"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2506">source</a><ahref="#method.to_string"class="anchor"></a><h4class="code-header">default fn <ahref="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string"class="fnname">to_string</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></h4></section></summary><divclass='docblock'><p>Converts the given value to a <code>String</code>. <ahref="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#601">source</a><ahref="#impl-TryFrom%3CU%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T<spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>,</span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Error-2"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Error-2"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></section></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/88674"title="Tracking issue for const_convert">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#607">source</a></span><ahref="#method.try_from"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from"class="fnname">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="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><divclass='docblock'><p>Performs the conversion.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#586">source</a><ahref="#impl-TryInto%3CU%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T<spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>,</span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Error-1"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="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><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl has-srclink"><spanclass="rightside"><spanclass="since"title="const unstable">const: <ahref="https://github.com/rust-lang/rust/issues/88674"title="Tracking issue for const_convert">unstable</a></span> · <aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#592">source</a></span><ahref="#method.try_into"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into"class="fnname">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="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><divclass='docblock'><p>Performs the conversion.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-TryIntoHeaderPair-for-Authorization%3CS%3E"class="impl has-srclink"><ahref="#impl-TryIntoHeaderPair-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T> TryIntoHeaderPair for T<spanclass="where fmt-newline">where<br> T: Header,</span></h3></section></summary><divclass="impl-items"><sectionid="associatedtype.Error-3"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Error-3"class="anchor"></a><h4class="code-header">type <aclass="associatedtype">Error</a> = <T as TryIntoHeaderValue>::Error</h4></section><sectionid="method.try_into_pair"class="method trait-impl has-srclink"><ahref="#method.try_into_pair"class="anchor"></a><h4class="code-header">fn <aclass="fnname">try_into_pair</a>(<br> self<br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><(<aclass="struct"href="https://docs.rs/http/0.2.8/http/header/name/struct.HeaderName.html"title="struct http::header::name::HeaderName">HeaderName</a>, <aclass="struct"href="https://docs.rs/http/0.2.8/http/header/value/struct.HeaderValue.html"title="struct http::header::value::HeaderValue">HeaderValue</a>), <T as TryIntoHeaderPair>::Error></h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-VZip%3CV%3E-for-Authorization%3CS%3E"class="impl has-srclink"><ahref="#impl-VZip%3CV%3E-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<V, T> VZip<V> for T<spanclass="where fmt-newline">where<br> V: MultiLane<T>,</span></h3></section></summary><divclass="impl-items"><sectionid="method.vzip"class="method trait-impl has-srclink"><ahref="#method.vzip"class="anchor"></a><h4class="code-header">fn <aclass="fnname">vzip</a>(self) -> V</h4></section></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-WithSubscriber-for-Authorization%3CS%3E"class="impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.36/src/tracing/instrument.rs.html#334">source</a><ahref="#impl-WithSubscriber-for-Authorization%3CS%3E"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://docs.rs/tracing/0.1.36/tracing/instrument/trait.WithSubscriber.html"title="trait tracing::instrument::WithSubscriber">WithSubscriber</a> for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.with_subscriber"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.36/src/tracing/instrument.rs.html#169-171">source</a><ahref="#method.with_subscriber"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.36/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber"class="fnname">with_subscriber</a><S>(self, subscriber: S) -><aclass="struct"href="https://docs.rs/tracing/0.1.36/tracing/instrument/struct.WithDispatch.html"title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self><spanclass="where fmt-newline">where<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="https://docs.rs/tracing-core/0.1.22/tracing_core/dispatcher/struct.Dispatch.html"title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>>,</span></h4></section></summary><divclass='docblock'><p>Attaches the provided <ahref="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.with_current_subscriber"class="method trait-impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.36/src/tracing/instrument.rs.html#221">source</a><ahref="#method.with_current_subscriber"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.36/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber"class="fnname">with_current_subscriber</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.36/tracing/instrument/struct.WithDispatch.html"title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self></h4></section></summary><divclass='docblock'><p>Attaches the current <ahref="https://docs.rs/tracing/0.1.36/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a><ahref="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a