kanidm/docs/v1.1.0-alpha.3/rustdoc/kanidmd_lib/credential/struct.Credential.html

35 lines
62 KiB
HTML
Raw Normal View History

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This is how we store credentials in the server. An account can have many credentials, and a credential can have many factors. Only successful auth to a credential as a whole unit will succeed. For example: A: Credential { password: aaa } B: Credential { password: bbb, otp: … } In this case, if we selected credential B, and then provided password “aaa” we would deny the auth as the password of B was incorrect. Additionally, while A only needs the “password”, B requires both the password and otp to be valid."><meta name="keywords" content="rust, rustlang, rust-lang, Credential"><title>Credential in kanidmd_lib::credential - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-124a1ca42af929b6.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-93196c7a1c3542a8.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-4743e13df3dfe8c4.css"><link rel="stylesheet" disabled href="../../static.files/dark-0e1b889528bd466b.css"><link rel="stylesheet" disabled href="../../static.files/ayu-65289d5d067c7c66.css"><script id="default-settings" ></script><script src="../../static.files/storage-d43fa987303ecbbb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-3367e395607fafc1.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="logo-container" href="../../kanidmd_lib/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../kanidmd_lib/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Credential</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.append_securitykey">append_securitykey</a></li><li><a href="#method.new_generatedpassword_only">new_generatedpassword_only</a></li><li><a href="#method.new_password_only">new_password_only</a></li><li><a href="#method.passkey_ref">passkey_ref</a></li><li><a href="#method.password_ref">password_ref</a></li><li><a href="#method.remove_securitykey">remove_securitykey</a></li><li><a href="#method.securitykey_ref">securitykey_ref</a></li><li><a href="#method.set_password">set_password</a></li><li><a href="#method.to_db_valuev1">to_db_valuev1</a></li><li><a href="#method.to_repl_v1">to_repl_v1</a></li><li><a href
a credential can have many factors. Only successful auth to a credential as a whole unit
will succeed. For example:
A: Credential { password: aaa }
B: Credential { password: bbb, otp: … }
In this case, if we selected credential B, and then provided password “aaa” we would deny
the auth as the password of B was incorrect. Additionally, while A only needs the “password”,
B requires both the password and otp to be valid.</p>
<p>In this way, each Credential provides its own password requirements and policy, and requires
some metadata to support this such as its source and strength etc.</p>
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Credential" class="impl has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#371-895">source</a><a href="#impl-Credential" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Credential.html" title="struct kanidmd_lib::credential::Credential">Credential</a></h3></section></summary><div class="impl-items"><section id="method.try_from_repl_v1" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#372-449">source</a><h4 class="code-header">pub fn <a href="#method.try_from_repl_v1" class="fn">try_from_repl_v1</a>(rc: &amp;ReplCredV1) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.68.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;(<a class="struct" href="https://doc.rust-lang.org/1.68.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, Self), <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.unit.html">()</a>&gt;</h4></section><details class="toggle method-toggle" open><summary><section id="method.new_password_only" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#452-457">source</a><h4 class="code-header">pub fn <a href="#method.new_password_only" class="fn">new_password_only</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;policy: &amp;<a class="struct" href="../../kanidm_lib_crypto/struct.CryptoPolicy.html" title="struct kanidm_lib_crypto::CryptoPolicy">CryptoPolicy</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;cleartext: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.68.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section></summary><div class="docblock"><p>Create a new credential that contains a CredentialType::Password</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.new_generatedpassword_only" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#460-465">source</a><h4 class="code-header">pub fn <a href="#method.new_generatedpassword_only" class="fn">new_generatedpassword_only</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;policy: &amp;<a class="struct" href="../../kanidm_lib_crypto/struct.CryptoPolicy.html" title="struct kanidm_lib_crypto::CryptoPolicy">CryptoPolicy</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;cleartext: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.68.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section></summary><div class="docblock"><p>Create a new credential that contains a CredentialType::GeneratedPassword</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_password" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#469-475">source</a><h4 class="code-header">pub fn <a href="#method.set_password" class="fn">set_password</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;policy: &amp;<a class="struct" href="../../kanidm_lib_crypto/struct.CryptoPolicy.html" title="struct kanidm_lib_crypto::CryptoPolicy">CryptoPolicy</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;cleartext: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.68.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section></summary><div class="docblock"><p>Update the state of the Password on this credential, if a password is present. If possible
this will convert the credential to a PasswordMFA in some cases, or fail in others.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.append_securitykey" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#480-510">source</a><h4 class="code-header">pub fn <a href="#method.append_securitykey" class="fn">append_securitykey</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;label: <a class="struct" href="https://doc.rust-lang.org/1.68.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;cred: SecurityKey<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.68.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section></summary><div class="docblock"><p>Extend this credential with another alternate webauthn credential. This is especially
useful for <code>PasswordMfa</code> where you can have many webauthn credentials and a password
generally so that one is a backup.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.remove_securitykey" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#513-553">source</a><h4 class="code-header">pub fn <a href="#method.remove_securitykey" class="fn">remove_securitykey</a>(&amp;self, label: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.68.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section></summary><div class="docblock"><p>Remove a webauthn token identified by <code>label</code> from this Credential.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_webauthn_properties" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#558-591">source</a><h4 class="code-header">pub fn <a href="#method.update_webauthn_properties" class="fn">update_webauthn_properties</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;auth_result: &amp;AuthenticationResult<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.68.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.68.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section></summary><div class="docblock"><p>After a successful authentication with Webauthn, we need to advance the credentials
counter value to prevent certain classes of replay attacks.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.securitykey_ref" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#594-603">source</a><h4 class="code-header">pub fn <a href="#method.securitykey_ref" class="fn">securitykey_ref</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.68.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&amp;Map&lt;<a class="struct" href="https://doc.rust-lang.org/1.68.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, SecurityKey&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section></summary><div class="docblock"><p>Get a reference to the contained webuthn credentials, if any.</p>
</div></details><section id="method.passkey_ref" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#605-614">source</a><h4 class="code-header">pub fn <a href="#method.passkey_ref" class="fn">passkey_ref</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.68.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&amp;Map&lt;<a class="struct" href="https://doc.rust-lang.org/1.68.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, Passkey&gt;, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section><details class="toggle method-toggle" open><summary><section id="method.password_ref" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#617-626">source</a><h4 class="code-header">pub fn <a href="#method.password_ref" class="fn">password_ref</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.68.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&amp;<a class="struct" href="struct.Password.html" title="struct kanidmd_lib::credential::Password">Password</a>, <a class="enum" href="../prelude/enum.OperationError.html" title="enum kanidmd_lib::prelude::OperationError">OperationError</a>&gt;</h4></section></summary><div class="docblock"><p>Get a reference to the contained password, if any.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_db_valuev1" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#634-660">source</a><h4 class="code-header">pub fn <a href="#method.to_db_valuev1" class="fn">to_db_valuev1</a>(&amp;self) -&gt; <a class="enum" href="../be/dbvalue/enum.DbCred.html" title="enum kanidmd_lib::be::dbvalue::DbCred">DbCred</a></h4></section></summary><div class="docblock"><p>Extract this credential into its Serialisable Database form, ready for persistence.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_repl_v1" class="method has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#663-705">source</a><h4 class="code-header">pub fn <a href="#method.to_repl_v1" class="fn">to_repl_v1</a>(&amp;self, tag: <a class="struct" href="https://doc.rust-lang.org/1.68.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -&gt; ReplCredV1</h4></section></summary><div class="docblock"><p>Extract this credential into its Serialisable Replication form</p>
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Credential" class="impl has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#86">source</a><a href="#impl-Clone-for-Credential" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.68.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Credential.html" title="struct kanidmd_lib::credential::Credential">Credential</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#86">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.68.1/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.Credential.html" title="struct kanidmd_lib::credential::Credential">Credential</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.68.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.68.1/src/core/clone.rs.html#132-134">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.68.1/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.68.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Credential" class="impl has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#86">source</a><a href="#impl-Debug-for-Credential" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.68.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Credential.html" title="struct kanidmd_lib::credential::Credential">Credential</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#86">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.68.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.68.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.68.1/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.68.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3C%26Credential%3E-for-CredentialDetail" class="impl has-srclink"><a class="srclink rightside" href="../../src/kani
by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.68.1/src/core/cmp.rs.html#227">source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.68.1/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.reference.html">&amp;</a>Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CDbCred%3E-for-Credential" class="impl has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#154-369">source</a><a href="#impl-TryFrom%3CDbCred%3E-for-Credential" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.68.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;<a class="enum" href="../be/dbvalue/enum.DbCred.html" title="enum kanidmd_lib::be::dbvalue::DbCred">DbCred</a>&gt; for <a class="struct" href="struct.Credential.html" title="struct kanidmd_lib::credential::Credential">Credential</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.68.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#157-368">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.68.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: <a class="enum" href="../be/dbvalue/enum.DbCred.html" title="enum kanidmd_lib::be::dbvalue::DbCred">DbCred</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.68.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.68.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><section id="impl-StructuralPartialEq-for-Credential" class="impl has-srclink"><a class="srclink rightside" href="../../src/kanidmd_lib/credential/mod.rs.html#86">source</a><a href="#impl-StructuralPartialEq-for-Credential" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.68.1/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="struct.Credential.html" title="struct kanidmd_lib::credential::Credential">Credential</a></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Credential" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-Credential" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.68.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Credential.html" title="struct kanidmd_lib::credential::Credential">Credential</a></h3></section><section id="impl-Send-for-Credential" class="impl has-srclink"><a href="#impl-Send-for-Credential" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.68.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Credential.html" title="struct kanidmd_lib::credential::Credential">Credential</a></h3></section><section id="impl-Sync-for-Credential" class="impl has-srclink"><a href="#im
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-Credential" class="impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#276">source</a><a href="#impl-Instrument-for-Credential" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="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><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#82">source</a><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument" class="fn">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -&gt; <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the provided <a href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html" title="Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#121">source</a><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span" class="fn">in_current_span</a>(self) -&gt; <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the <a href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html#method.current">current</a> <a href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-Credential" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.68.1/src/core/convert/mod.rs.html#717">source</a><a href="#impl-Into%3CU%3E-for-Credential" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.68.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.68.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.68.1/src/core/convert/mod.rs.html#725">source</a></span><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.68.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/1.68.1/core/convert/trait.From.html" title="From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Pointable-for-Credential" class="impl has-srclink"><a href="#impl-Pointable-for-Credential" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Pointable for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.ALIGN" class="associatedconstant trait-impl has-srclink"><a href="#associatedconstant.ALIGN" class="anchor">§</a><h4 class="code-header">const <a class="constant">ALIGN</a>: <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.usize.html">usize</a> = mem::align_of::&lt;T&gt;()</h4></section></summary><div class='docblock'>The alignment of pointer.</div></details><details class="toggle" open><summary><section id="associatedtype.Init" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Init" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Init</a> = T</h4></section></summary><div class='docblock'>The type for initializers.</div></details><details class="toggle method-toggle" open><summary><section id="method.init" class="method trait-impl has-srclink"><a href="#method.init" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">init</a>(init: &lt;T as Pointable&gt;::Init) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Initializes a with the given initializer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl has-srclink"><a href="#method.deref" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">deref</a>&lt;'a&gt;(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.reference.html">&amp;'a </a>T</h4></section></summary><div class='docblock'>Dereferences the given pointer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deref_mut" class="method trait-impl has-srclink"><a href="#method.deref_mut" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">deref_mut</a>&lt;'a&gt;(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.reference.html">&amp;'a mut </a>T</h4></section></summary><div class='docblock'>Mutably dereferences the given pointer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.drop" class="method trait-impl has-srclink"><a href="#method.drop" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">drop</a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/1.68.1/std/primitive.usize.html">usize</a>)</h4></section></summary><div class='docblock'>Drops the object pointed to by the given pointer. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same%3CT%3E-for-Credential" class="impl has-srclink"><a class="srclink rightside" href="https://docs.rs/typenum/1.16.0/src/typenum/type_operators.rs.html#34">source</a><a href="#impl-Same%3CT%3E-for-Credential" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.16.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.16.0/typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class
<a href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#221">source</a><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fn">with_current_subscriber</a>(self) -&gt; <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Attaches the current <a href="https://docs.rs/tracing/0.1.37/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="https://docs.rs/tracing-core/0.1.22/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<a href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="kanidmd_lib" data-themes="" data-resource-suffix="" data-rustdoc-version="1.68.1 (8460ca823 2023-03-20)" data-search-js="search-98d53477a794af0b.js" data-settings-js="settings-c3c521c753752a1a.js" data-settings-css="settings-08ddfdda51b8ee2e.css" ></div></body></html>