<linkrel="alternate icon"type="image/png"href="../../../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><bodyclass="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu"role="button">☰</div><ahref='../../../actix_web_httpauth/index.html'><divclass='logo-container rust-logo'><imgsrc='../../../rust-logo.png'alt='logo'></div></a><pclass="location">Trait Scheme</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#required-methods">Required Methods</a><divclass="sidebar-links"><ahref="#tymethod.parse">parse</a></div><aclass="sidebar-title"href="#implementors">Implementors</a></div><pclass="location"><ahref="../../index.html">actix_web_httpauth</a>::<wbr><ahref="../index.html">headers</a>::<wbr><ahref="index.html">authorization</a></p><divid="sidebar-vars"data-name="Scheme"data-ty="trait"data-relpath=""></div><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"><imgsrc="../../../brush.svg"width="18"height="18"alt="Pick another theme!"></button><divid="theme-choices"role="menu"></div></div><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"class="help-button">?</button>
}</pre></div><divclass="docblock"><p>Authentication scheme for <ahref="./struct.Authorization.html"><code>Authorization</code></a>
header.</p>
</div><h2id="required-methods"class="small-section-header">Required methods<ahref="#required-methods"class="anchor"></a></h2><divclass="methods"><h3id="tymethod.parse"class="method"><code>fn <ahref="#tymethod.parse"class="fnname">parse</a>(header: &<aclass="struct"href="https://docs.rs/http/0.2.3/http/header/value/struct.HeaderValue.html"title="struct http::header::value::HeaderValue">HeaderValue</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self, <aclass="enum"href="../../../actix_web_httpauth/headers/authorization/enum.ParseError.html"title="enum actix_web_httpauth::headers::authorization::ParseError">ParseError</a>></code><aclass="srclink"href="../../../src/actix_web_httpauth/headers/authorization/scheme/mod.rs.html#14"title="goto source code">[src]</a></h3><divclass="docblock"><p>Try to parse the authentication scheme from the <code>Authorization</code> header.</p>