<!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 `AccessTokenResponse` struct in crate `kanidm_proto`."><metaname="keywords"content="rust, rustlang, rust-lang, AccessTokenResponse"><title>AccessTokenResponse in kanidm_proto::oauth2 - 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="../../kanidm_proto/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../../rust-logo.svg"alt="logo"></div></a><h2></h2></nav><navclass="sidebar"><aclass="sidebar-logo"href="../../kanidm_proto/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../../rust-logo.svg"alt="logo"></div></a><h2class="location"><ahref="#">AccessTokenResponse</a></h2><divclass="sidebar-elems"><section><h3><ahref="#fields">Fields</a></h3><ulclass="block"><li><ahref="#structfield.access_token">access_token</a></li><li><ahref="#structfield.expires_in">expires_in</a></li><li><ahref="#structfield.id_token">id_token</a></li><li><ahref="#structfield.refresh_token">refresh_token</a></li><li><ahref="#structfield.scope">scope</a></li><li><ahref="#structfield.token_type">token_type</a></li></ul><h3><ahref="#trait-implementations">Trait Implementations</a></h3><ulclass="block"><li><ahref="#impl-Debug-for-AccessTokenResponse">Debug</a></li><li><ahref="#impl-Deserialize%3C%27de%3E-for-AccessTokenResponse">Deserialize<'de></a></li><li><ahref="#impl-Serialize-for-AccessTokenResponse">Serialize</a></li></ul><h3><ahref="#synthetic-implementations">Auto Trait Implementations</a></h3><ulclass="block"><li><ahref="#impl-RefUnwindSafe-for-AccessTokenResponse">RefUnwindSafe</a></li><li><ahref="#impl-Send-for-AccessTokenResponse">Send</a></li><li><ahref="#impl-Sync-for-AccessTokenResponse">Sync</a></li><li><ahref="#impl-Unpin-for-AccessTokenResponse">Unpin</a></li><li><ahref="#impl-UnwindSafe-for-AccessTokenResponse">UnwindSafe</a></li></ul><h3><ahref="#blanket-implementations">Blanket Implementations</a></h3><ulclass="block"><li><ahref="#impl-Any-for-AccessTokenResponse">Any</a></li><li><ahref="#impl-Borrow%3CT%3E-for-AccessTokenResponse">Borrow<T></a></li><li><ahref="#impl-BorrowMut%3CT%3E-for-AccessTokenResponse">BorrowMut<T></a></li><li><ahref="#impl-DeserializeOwned-for-AccessTokenResponse">DeserializeOwned</a></li><li><ahref="#impl-From%3CT%3E-for-AccessToke
}</code></pre></div><h2id="fields"class="fields small-section-header">Fields<ahref="#fields"class="anchor"></a></h2><spanid="structfield.access_token"class="structfield small-section-header"><ahref="#structfield.access_token"class="anchor field"></a><code>access_token: <aclass="struct"href="https://doc.rust-lang.org/1.66.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></code></span><spanid="structfield.token_type"class="structfield small-section-header"><ahref="#structfield.token_type"class="anchor field"></a><code>token_type: <aclass="struct"href="https://doc.rust-lang.org/1.66.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></code></span><spanid="structfield.expires_in"class="structfield small-section-header"><ahref="#structfield.expires_in"class="anchor field"></a><code>expires_in: <aclass="primitive"href="https://doc.rust-lang.org/1.66.0/std/primitive.u32.html">u32</a></code></span><spanid="structfield.refresh_token"class="structfield small-section-header"><ahref="#structfield.refresh_token"class="anchor field"></a><code>refresh_token: <aclass="enum"href="https://doc.rust-lang.org/1.66.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="https://doc.rust-lang.org/1.66.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>></code></span><spanid="structfield.scope"class="structfield small-section-header"><ahref="#structfield.scope"class="anchor field"></a><code>scope: <aclass="enum"href="https://doc.rust-lang.org/1.66.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="https://doc.rust-lang.org/1.66.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>></code></span><divclass="docblock"><p>Space seperated list of scopes that were approved, if this differs from the
</div><spanid="structfield.id_token"class="structfield small-section-header"><ahref="#structfield.id_token"class="anchor field"></a><code>id_token: <aclass="enum"href="https://doc.rust-lang.org/1.66.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="struct"href="https://doc.rust-lang.org/1.66.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>></code></span><divclass="docblock"><p>Oidc puts the token here.</p>
</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-AccessTokenResponse"class="impl has-srclink"><aclass="srclink rightside"href="../../src/kanidm_proto/oauth2.rs.html#108">source</a><ahref="#impl-Debug-for-AccessTokenResponse"class="anchor"></a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.66.0/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="struct.AccessTokenResponse.html"title="struct kanidm_proto::oauth2::AccessTokenResponse">AccessTokenResponse</a></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/kanidm_proto/oauth2.rs.html#108">source</a><ahref="#method.fmt"class="anchor"></a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.66.0/core/fmt/trait.Debug.html#tymethod.fmt"class="fnname">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.66.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/1.66.0/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></h4></section></summary><divclass='docblock'>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/1.66.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Deserialize%3C%27de%3E-for-AccessTokenResponse"class="impl has-srclink"><aclass="srclink rightside"href="../../src/kanidm_proto/oauth2.rs.html#108">source</a><ahref="#impl-Deserialize%3C%27de%3E-for-AccessTokenResponse"class="anchor"></a><h3class="code-header">impl<'de><aclass="trait"href="https://docs.rs/serde/1.0.150/serde/de/trait.Deserialize.html"title="trait serde::de::Deserialize">Deserialize</a><'de> for <aclass="struct"href="struct.AccessTokenResponse.html"title="struct kanidm_proto::oauth2::AccessTokenResponse">AccessTokenResponse</a></h3></section></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><sectionid="method.deserialize"class="method trait-impl has-srclink"><aclass="srclink rightside"href="../../src/kanidm_proto/oauth2.rs.html#108">source</a><ahref="#method.deserialize"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/serde/1.0.150/serde/de/trait.Deserialize.html#tymethod.deserialize"class="fnname">deserialize</a><__D>(__deserializer: __D) -><aclass="enum"href="https://doc.rust-lang.org/1.66.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self, __D::<aclass="associatedtype"href="https://docs.rs/serde/1.0.150/serde/de/trait.Deserializer.html#associatedtype.Error"title="type serde::de::Deserializer::Error">Error</a>><spanclass="where fmt-newline">where<br> __D: <aclass="trait"href="https://docs.rs/serde/1.0.150/serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de>,</span></h4></section></summary><divclass='docblock'>Deserialize this value from the given Serde deserializer. <ahref="https://docs.rs/serde/1.0.150/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><sectionid="impl-Serialize-for-AccessTokenResponse"class="impl has-srclink"><aclass="srclink rightside"href="../../src/kanidm_proto/oauth2.rs.html#108">source</a><ahref="#impl-Serialize-for-AccessTokenResponse"class="anchor"></a><h3class="code-header">impl <aclass="trait"href="https://docs.rs/serde/1.0.150/serde/ser/trait.Serialize.html"tit
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"><summary><sectionid="impl-Instrument-for-AccessTokenResponse"class="impl has-srclink"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#276">source</a><ahref="#impl-Instrument-for-AccessTokenResponse"class="anchor"></a><h3class="code-header">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"><aclass="srclink rightside"href="https://docs.rs/tracing/0.1.37/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.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'>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
<code>Instrumented</code> wrapper. <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></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.37/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.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'>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
<ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html"title="WithDispatch"><code>WithDispatch</code></a> wrapper. <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</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.37/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.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'>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