<!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="API documentation for the Rust `Oauth2Opt` enum in crate `kanidm_cli`."><metaname="keywords"content="rust, rustlang, rust-lang, Oauth2Opt"><title>Oauth2Opt in kanidm_cli - 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"type="text/css"href="../normalize.css"><linkrel="stylesheet"type="text/css"href="../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../ayu.css"disabled><linkrel="stylesheet"type="text/css"href="../dark.css"disabled><linkrel="stylesheet"type="text/css"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 enum"><!--[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="../kanidm_cli/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="../kanidm_cli/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../rust-logo.svg"alt="logo"></div></a><h2class="location"><ahref="#">Oauth2Opt</a></h2><divclass="sidebar-elems"><section><divclass="block"><h3class="sidebar-title"><ahref="#variants">Variants</a></h3><ul><li><ahref="#variant.CreateBasic">CreateBasic</a></li><li><ahref="#variant.Delete">Delete</a></li><li><ahref="#variant.DeleteScopeMap">DeleteScopeMap</a></li><li><ahref="#variant.DeleteSupScopeMap">DeleteSupScopeMap</a></li><li><ahref="#variant.DisableLegacyCrypto">DisableLegacyCrypto</a></li><li><ahref="#variant.DisablePkce">DisablePkce</a></li><li><ahref="#variant.EnableLegacyCrypto">EnableLegacyCrypto</a></li><li><ahref="#variant.EnablePkce">EnablePkce</a></li><li><ahref="#variant.Get">Get</a></li><li><ahref="#variant.List">List</a></li><li><ahref="#variant.PreferSPNUsername">PreferSPNUsername</a></li><li><ahref="#variant.PreferShortUsername">PreferShortUsername</a></li><li><ahref="#variant.ResetSecrets">ResetSecrets</a></li><li><ahref="#variant.SetDisplayname">SetDisplayname</a></li><li><ahref="#variant.ShowBasicSecret">ShowBasicSecret</a></li><li><ahref="#variant.UpdateScopeMap">UpdateScopeMap</a></li><li><ahref="#variant.UpdateSupScopeMap">UpdateSupScopeMap</a></li></ul></div><divclass="block"><h3class="sidebar-title"><ahref="#implementations">Methods</a></h3><ul><li><ahref="#method.debug">debug</a></li><li><ahref="#method.exec">exec</a></li></ul></div><divclass="block"><h3class="sidebar-title"><ahref="#trait-implementations">Trait Implementations</a></h3><ul><li><ahref="#impl-Debug-for-Oauth2Opt">Debug</a></li><li><ahref="#impl-FromArgMatches-for-Oauth2Opt">FromArgMatches</a></li><li><ahref="#impl-Subcommand-for-Oauth2Opt">Subcommand</a></li></ul></div><divclass="block"><h3class="sidebar-title">
</details>}</code></pre></div><h2id="variants"class="variants small-section-header">Variants<ahref="#variants"class="anchor"></a></h2><h3id="variant.List"class="variant small-section-header"><ahref="#variant.List"class="anchor field"></a><code>List(<aclass="struct"href="struct.CommonOpt.html"title="struct kanidm_cli::CommonOpt">CommonOpt</a>)</code></h3><divclass="docblock"><p>List all configured oauth2 resource servers</p>
</div><h3id="variant.Get"class="variant small-section-header"><ahref="#variant.Get"class="anchor field"></a><code>Get(<aclass="struct"href="struct.Named.html"title="struct kanidm_cli::Named">Named</a>)</code></h3><divclass="docblock"><p>Display a selected oauth2 resource server</p>
</div><h3id="variant.CreateBasic"class="variant small-section-header"><ahref="#variant.CreateBasic"class="anchor field"></a><code>CreateBasic(<aclass="struct"href="struct.Oauth2BasicCreateOpt.html"title="struct kanidm_cli::Oauth2BasicCreateOpt">Oauth2BasicCreateOpt</a>)</code></h3><divclass="docblock"><p>Create a new oauth2 resource server</p>
</div><h3id="variant.UpdateScopeMap"class="variant small-section-header"><ahref="#variant.UpdateScopeMap"class="anchor field"></a><code>UpdateScopeMap(<aclass="struct"href="struct.Oauth2CreateScopeMapOpt.html"title="struct kanidm_cli::Oauth2CreateScopeMapOpt">Oauth2CreateScopeMapOpt</a>)</code></h3><divclass="docblock"><p>Update or add a new mapping from a group to scopes that it provides to members</p>
</div><h3id="variant.DeleteScopeMap"class="variant small-section-header"><ahref="#variant.DeleteScopeMap"class="anchor field"></a><code>DeleteScopeMap(<aclass="struct"href="struct.Oauth2DeleteScopeMapOpt.html"title="struct kanidm_cli::Oauth2DeleteScopeMapOpt">Oauth2DeleteScopeMapOpt</a>)</code></h3><divclass="docblock"><p>Remove a mapping from groups to scopes</p>
</div><h3id="variant.UpdateSupScopeMap"class="variant small-section-header"><ahref="#variant.UpdateSupScopeMap"class="anchor field"></a><code>UpdateSupScopeMap(<aclass="struct"href="struct.Oauth2CreateScopeMapOpt.html"title="struct kanidm_cli::Oauth2CreateScopeMapOpt">Oauth2CreateScopeMapOpt</a>)</code></h3><divclass="docblock"><p>Update or add a new mapping from a group to scopes that it provides to members</p>
</div><h3id="variant.DeleteSupScopeMap"class="variant small-section-header"><ahref="#variant.DeleteSupScopeMap"class="anchor field"></a><code>DeleteSupScopeMap(<aclass="struct"href="struct.Oauth2DeleteScopeMapOpt.html"title="struct kanidm_cli::Oauth2DeleteScopeMapOpt">Oauth2DeleteScopeMapOpt</a>)</code></h3><divclass="docblock"><p>Remove a mapping from groups to scopes</p>
</div><h3id="variant.ResetSecrets"class="variant small-section-header"><ahref="#variant.ResetSecrets"class="anchor field"></a><code>ResetSecrets(<aclass="struct"href="struct.Named.html"title="struct kanidm_cli::Named">Named</a>)</code></h3><divclass="docblock"><p>Reset the secrets associated to this resource server</p>
</div><h3id="variant.ShowBasicSecret"class="variant small-section-header"><ahref="#variant.ShowBasicSecret"class="anchor field"></a><code>ShowBasicSecret(<aclass="struct"href="struct.Named.html"title="struct kanidm_cli::Named">Named</a>)</code></h3><divclass="docblock"><p>Show the associated basic secret for this resource server</p>
</div><h3id="variant.Delete"class="variant small-section-header"><ahref="#variant.Delete"class="anchor field"></a><code>Delete(<aclass="struct"href="struct.Named.html"title="struct kanidm_cli::Named">Named</a>)</code></h3><divclass="docblock"><p>Delete a oauth2 resource server</p>
</div><h3id="variant.SetDisplayname"class="variant small-section-header"><ahref="#variant.SetDisplayname"class="anchor field"></a><code>SetDisplayname(<aclass="struct"href="struct.Oauth2SetDisplayname.html"title="struct kanidm_cli::Oauth2SetDisplayname">Oauth2SetDisplayname</a>)</code></h3><divclass="docblock"><p>Set a new displayname for a resource server</p>
</div><h3id="variant.EnablePkce"class="variant small-section-header"><ahref="#variant.EnablePkce"class="anchor field"></a><code>EnablePkce(<aclass="struct"href="struct.Named.html"title="struct kanidm_cli::Named">Named</a>)</code></h3><divclass="docblock"><p>Enable PKCE on this oauth2 resource server. This defaults to being enabled.</p>
</div><h3id="variant.DisablePkce"class="variant small-section-header"><ahref="#variant.DisablePkce"class="anchor field"></a><code>DisablePkce(<aclass="struct"href="struct.Named.html"title="struct kanidm_cli::Named">Named</a>)</code></h3><divclass="docblock"><p>Disable PKCE on this oauth2 resource server to work around insecure clients that
may not support it. You should request the client to enable PKCE!</p>
</div><h3id="variant.EnableLegacyCrypto"class="variant small-section-header"><ahref="#variant.EnableLegacyCrypto"class="anchor field"></a><code>EnableLegacyCrypto(<aclass="struct"href="struct.Named.html"title="struct kanidm_cli::Named">Named</a>)</code></h3><divclass="docblock"><p>Enable legacy signing crypto on this oauth2 resource server. This defaults to being disabled.
You only need to enable this for openid clients that do not support modern crytopgraphic
operations.</p>
</div><h3id="variant.DisableLegacyCrypto"class="variant small-section-header"><ahref="#variant.DisableLegacyCrypto"class="anchor field"></a><code>DisableLegacyCrypto(<aclass="struct"href="struct.Named.html"title="struct kanidm_cli::Named">Named</a>)</code></h3><divclass="docblock"><p>Disable legacy signing crypto on this oauth2 resource server. This is the default.</p>
</div><h3id="variant.PreferShortUsername"class="variant small-section-header"><ahref="#variant.PreferShortUsername"class="anchor field"></a><code>PreferShortUsername(<aclass="struct"href="struct.Named.html"title="struct kanidm_cli::Named">Named</a>)</code></h3><divclass="docblock"><p>Use the ‘name’ attribute instead of ‘spn’ for the preferred_username</p>
</div><h3id="variant.PreferSPNUsername"class="variant small-section-header"><ahref="#variant.PreferSPNUsername"class="anchor field"></a><code>PreferSPNUsername(<aclass="struct"href="struct.Named.html"title="struct kanidm_cli::Named">Named</a>)</code></h3><divclass="docblock"><p>Use the ‘spn’ attribute instead of ‘name’ for the preferred_username</p>
</div><h2id="implementations"class="small-section-header">Implementations<ahref="#implementations"class="anchor"></a></h2><divid="implementations-list"><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Oauth2Opt"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/oauth2.rs.html#3-215">source</a></span><ahref="#impl-Oauth2Opt"class="anchor"></a><h3class="code-header in-band">impl <aclass="enum"href="enum.Oauth2Opt.html"title="enum kanidm_cli::Oauth2Opt">Oauth2Opt</a></h3></section></summary><divclass="impl-items"><sectionid="method.debug"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/oauth2.rs.html#4-24">source</a></span><h4class="code-header">pub fn <ahref="#method.debug"class="fnname">debug</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section><sectionid="method.exec"class="method has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/oauth2.rs.html#26-214">source</a></span><h4class="code-header">pub async fn <ahref="#method.exec"class="fnname">exec</a>(&self)</h4></section></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-Debug-for-Oauth2Opt"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/up/opt/kanidm.rs.html#613">source</a></span><ahref="#impl-Debug-for-Oauth2Opt"class="anchor"></a><h3class="code-header in-band">impl <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="enum"href="enum.Oauth2Opt.html"title="enum kanidm_cli::Oauth2Opt">Oauth2Opt</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.fmt"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/up/opt/kanidm.rs.html#613">source</a></span><ahref="#method.fmt"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/fmt/trait.Debug.html#tymethod.fmt"class="fnname">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.64.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.64.0/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/1.64.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-FromArgMatches-for-Oauth2Opt"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/up/opt/kanidm.rs.html#613">source</a></span><ahref="#impl-FromArgMatches-for-Oauth2Opt"class="anchor"></a><h3class="code-header in-band">impl FromArgMatches for <aclass="enum"href="enum.Oauth2Opt.html"title="enum kanidm_cli::Oauth2Opt">Oauth2Opt</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.from_arg_matches"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/up/opt/kanidm.rs.html#613">source</a></span><ahref="#method.from_arg_matches"class="anchor"></a><h4class="code-header">fn <aclass="fnname">from_arg_matches</a>(__clap_arg_matches: &ArgMatches) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self, Error></h4></section></summary><divclass='docblock'><p>Instantiate <code>Self</code> from [<code>ArgMatches</code>], parsing the arguments as needed. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.from_arg_matches_mut"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/up/opt/kanidm.rs.html#613">source</a></span><ahref="#method.from_arg_matches_mut"class="anchor"></a><h4class="code-header">fn <aclass="fnname">from_arg_matches_mut</a>(<br> __clap_arg_matches: &mut ArgMatches<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self, Error></h4></section></summary><divclass='docblock'><p>Instantiate <code>Self</code> from [<code>ArgMatches</code>], parsing the arguments as needed. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.update_from_arg_matches"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/up/opt/kanidm.rs.html#613">source</a></span><ahref="#method.update_from_arg_matches"class="anchor"></a><h4class="code-header">fn <aclass="fnname">update_from_arg_matches</a>(<br> &mut self,<br> __clap_arg_matches: &ArgMatches<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>, Error></h4></section></summary><divclass='docblock'><p>Assign values from <code>ArgMatches</code> to <code>self</code>.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.update_from_arg_matches_mut"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/up/opt/kanidm.rs.html#613">source</a></span><ahref="#method.update_from_arg_matches_mut"class="anchor"></a><h4class="code-header">fn <aclass="fnname">update_from_arg_matches_mut</a><'b>(<br> &mut self,<br> __clap_arg_matches: &mut ArgMatches<br>) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>, Error></h4></section></summary><divclass='docblock'><p>Assign values from <code>ArgMatches</code> to <code>self</code>.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Subcommand-for-Oauth2Opt"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/up/opt/kanidm.rs.html#613">source</a></span><ahref="#impl-Subcommand-for-Oauth2Opt"class="anchor"></a><h3class="code-header in-band">impl Subcommand for <aclass="enum"href="enum.Oauth2Opt.html"title="enum kanidm_cli::Oauth2Opt">Oauth2Opt</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.augment_subcommands"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/up/opt/kanidm.rs.html#613">source</a></span><ahref="#method.augment_subcommands"class="anchor"></a><h4class="code-header">fn <aclass="fnname">augment_subcommands</a><'b>(__clap_app: Command<'b>) -> Command<'b></h4></section></summary><divclass='docblock'><p>Append to [<code>Command</code>] so it can instantiate <code>Self</code>. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.augment_subcommands_for_update"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/up/opt/kanidm.rs.html#613">source</a></span><ahref="#method.augment_subcommands_for_update"class="anchor"></a><h4class="code-header">fn <aclass="fnname">augment_subcommands_for_update</a><'b>(__clap_app: Command<'b>) -> Command<'b></h4></section></summary><divclass='docblock'><p>Append to [<code>Command</code>] so it can update <code>self</code>. <a>Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.has_subcommand"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="../src/kanidm_cli/up/opt/kanidm.rs.html#613">source</a></span><ahref="#method.has_subcommand"class="anchor"></a><h4class="code-header">fn <aclass="fnname">has_subcommand</a>(__clap_name: &<aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'><p>Test whether <code>Self</code> can parse a specific subcommand</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Instrument-for-Oauth2Opt"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#276">source</a></span><ahref="#impl-Instrument-for-Oauth2Opt"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://docs.rs/tracing/0.1.37/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"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#82">source</a></span><ahref="#method.instrument"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument"class="fnname">instrument</a>(self, span: <aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"title="struct tracing::span::Span">Span</a>) -><aclass="struct"href="https://docs.rs/tracing/0.1.37/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.37/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"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#121">source</a></span><ahref="#method.in_current_span"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/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.37/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.37/tracing/span/struct.Span.html#method.current">current</a><ahref="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"><code>Span</code></a>, returning an
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Into%3CU%3E-for-Oauth2Opt"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#541">source</a></span><ahref="#impl-Into%3CU%3E-for-Oauth2Opt"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html"title="trait core::convert::From">From</a><T>, </span></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.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/1.64.0/src/core/convert/mod.rs.html#549">source</a></span><ahref="#method.into"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html#tymethod.into"class="fnname">into</a>(self) -> U</h4></section></summary><divclass="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html"title="From">From</a><T> for U</code> chooses to do.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Same%3CT%3E-for-Oauth2Opt"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/typenum/1.15.0/src/typenum/type_operators.rs.html#34">source</a></span><ahref="#impl-Same%3CT%3E-for-Oauth2Opt"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://docs.rs/typenum/1.15.0/typenum/type_operators/trait.Same.html"title="trait typenum::type_operators::Same">Same</a><T> for T</h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><sectionid="associatedtype.Output"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Output"class="anchor"></a><h4class="code-header">type <ahref="https://docs.rs/typenum/1.15.0/typenum/type_operators/trait.Same.html#associatedtype.Output"class="associatedtype">Output</a> = T</h4></section></summary><divclass='docblock'><p>Should always be <code>Self</code></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-Oauth2Opt"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#598">source</a></span><ahref="#impl-TryFrom%3CU%3E-for-Oauth2Opt"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.64.0/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/1.64.0/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"class="associatedtype trait-impl has-srclink"><ahref="#associatedtype.Error"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.64.0/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/1.64.0/src/core/convert/mod.rs.html#604">source</a></span><ahref="#method.try_from"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#tymethod.try_from"class="fnname">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.64.0/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-Oauth2Opt"class="impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#583">source</a></span><ahref="#impl-TryInto%3CU%3E-for-Oauth2Opt"class="anchor"></a><h3class="code-header in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.64.0/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/1.64.0/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/1.64.0/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.64.0/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/1.64.0/src/core/convert/mod.rs.html#589">source</a></span><ahref="#method.try_into"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html#tymethod.try_into"class="fnname">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.64.0/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><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.with_current_subscriber"class="method trait-impl has-srclink"><spanclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#221">source</a></span><ahref="#method.with_current_subscriber"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/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.37/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.37/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