mirror of
https://github.com/actix/actix-extras.git
synced 2025-08-31 11:26:59 +02:00
Deploying to gh-pages from @ 8741cd32cc
🚀
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!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="The `SameSite` cookie attribute."><meta name="keywords" content="rust, rustlang, rust-lang, SameSite"><title>actix_redis::SameSite - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
|
||||
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../actix_redis/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Enum SameSite</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Lax">Lax</a><a href="#variant.None">None</a><a href="#variant.Strict">Strict</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.is_lax">is_lax</a><a href="#method.is_none">is_none</a><a href="#method.is_strict">is_strict</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</a><a href="#impl-Eq">Eq</a><a href="#impl-Hash">Hash</a><a href="#impl-PartialEq%3CSameSite%3E">PartialEq<SameSite></a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-CallHasher">CallHasher</a><a href="#impl-Equivalent%3CK%3E">Equivalent<K></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a></div></div><p class="location"><a href="index.html">actix_redis</a></p><div id="sidebar-vars" data-name="SameSite" data-ty="enum" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Enum <a href="index.html">actix_redis</a>::<wbr><a class="enum" href="">SameSite</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="https://docs.rs/cookie/0.14/src/cookie/draft.rs.html#29-36" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">pub enum SameSite {
|
||||
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Enum <a href="index.html">actix_redis</a>::<wbr><a class="enum" href="">SameSite</a><button id="copy-path" onclick="copy_path(this)">⎘</button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="https://docs.rs/cookie/0.14/src/cookie/draft.rs.html#29-36" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">pub enum SameSite {
|
||||
Strict,
|
||||
Lax,
|
||||
None,
|
||||
@@ -29,30 +29,30 @@ definition are subject to change.</p>
|
||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="enum" href="../actix_redis/enum.SameSite.html" title="enum actix_redis::SameSite">SameSite</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="https://docs.rs/cookie/0.14/src/cookie/draft.rs.html#38-98" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.is_strict" class="method"><code>pub fn <a href="#method.is_strict" class="fnname">is_strict</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="https://docs.rs/cookie/0.14/src/cookie/draft.rs.html#52" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if <code>self</code> is <code>SameSite::Strict</code> and <code>false</code> otherwise.</p>
|
||||
<h1 id="example" class="section-header"><a href="#example">Example</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">cookie</span>::<span class="ident">SameSite</span>;
|
||||
<span class="kw">use</span> <span class="ident">cookie::SameSite</span>;
|
||||
|
||||
<span class="kw">let</span> <span class="ident">strict</span> <span class="op">=</span> <span class="ident">SameSite</span>::<span class="ident">Strict</span>;
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">strict</span>.<span class="ident">is_strict</span>());
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">strict</span>.<span class="ident">is_lax</span>());
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">strict</span>.<span class="ident">is_none</span>());</pre></div>
|
||||
<span class="kw">let</span> <span class="ident">strict</span> <span class="op">=</span> <span class="ident">SameSite::Strict</span>;
|
||||
<span class="macro">assert!</span>(<span class="ident">strict</span>.<span class="ident">is_strict</span>());
|
||||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">strict</span>.<span class="ident">is_lax</span>());
|
||||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">strict</span>.<span class="ident">is_none</span>());</pre></div>
|
||||
</div><h4 id="method.is_lax" class="method"><code>pub fn <a href="#method.is_lax" class="fnname">is_lax</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="https://docs.rs/cookie/0.14/src/cookie/draft.rs.html#72" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if <code>self</code> is <code>SameSite::Lax</code> and <code>false</code> otherwise.</p>
|
||||
<h1 id="example-1" class="section-header"><a href="#example-1">Example</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">cookie</span>::<span class="ident">SameSite</span>;
|
||||
<span class="kw">use</span> <span class="ident">cookie::SameSite</span>;
|
||||
|
||||
<span class="kw">let</span> <span class="ident">lax</span> <span class="op">=</span> <span class="ident">SameSite</span>::<span class="ident">Lax</span>;
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">lax</span>.<span class="ident">is_lax</span>());
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">lax</span>.<span class="ident">is_strict</span>());
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">lax</span>.<span class="ident">is_none</span>());</pre></div>
|
||||
<span class="kw">let</span> <span class="ident">lax</span> <span class="op">=</span> <span class="ident">SameSite::Lax</span>;
|
||||
<span class="macro">assert!</span>(<span class="ident">lax</span>.<span class="ident">is_lax</span>());
|
||||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">lax</span>.<span class="ident">is_strict</span>());
|
||||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">lax</span>.<span class="ident">is_none</span>());</pre></div>
|
||||
</div><h4 id="method.is_none" class="method"><code>pub fn <a href="#method.is_none" class="fnname">is_none</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="https://docs.rs/cookie/0.14/src/cookie/draft.rs.html#92" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if <code>self</code> is <code>SameSite::None</code> and <code>false</code> otherwise.</p>
|
||||
<h1 id="example-2" class="section-header"><a href="#example-2">Example</a></h1>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">cookie</span>::<span class="ident">SameSite</span>;
|
||||
<span class="kw">use</span> <span class="ident">cookie::SameSite</span>;
|
||||
|
||||
<span class="kw">let</span> <span class="ident">none</span> <span class="op">=</span> <span class="ident">SameSite</span>::<span class="prelude-val">None</span>;
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">none</span>.<span class="ident">is_none</span>());
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">none</span>.<span class="ident">is_lax</span>());
|
||||
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">none</span>.<span class="ident">is_strict</span>());</pre></div>
|
||||
<span class="kw">let</span> <span class="ident">none</span> <span class="op">=</span> <span class="ident">SameSite::None</span>;
|
||||
<span class="macro">assert!</span>(<span class="ident">none</span>.<span class="ident">is_none</span>());
|
||||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">none</span>.<span class="ident">is_lax</span>());
|
||||
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">none</span>.<span class="ident">is_strict</span>());</pre></div>
|
||||
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../actix_redis/enum.SameSite.html" title="enum actix_redis::SameSite">SameSite</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="https://docs.rs/cookie/0.14/src/cookie/draft.rs.html#28" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="enum" href="../actix_redis/enum.SameSite.html" title="enum actix_redis::SameSite">SameSite</a></code><a class="srclink" href="https://docs.rs/cookie/0.14/src/cookie/draft.rs.html#28" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id="method.clone_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id="impl-Copy" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../actix_redis/enum.SameSite.html" title="enum actix_redis::SameSite">SameSite</a></code><a href="#impl-Copy" class="anchor"></a><a class="srclink" href="https://docs.rs/cookie/0.14/src/cookie/draft.rs.html#28" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../actix_redis/enum.SameSite.html" title="enum actix_redis::SameSite">SameSite</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="https://docs.rs/cookie/0.14/src/cookie/draft.rs.html#28" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code><a class="srclink" href="https://docs.rs/cookie/0.14/src/cookie/draft.rs.html#28" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
|
Reference in New Issue
Block a user