Skip to content

Commit

Permalink
deploy: 5690611
Browse files Browse the repository at this point in the history
  • Loading branch information
AL333Z committed Sep 26, 2024
1 parent 68dfaca commit a25f662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions getting-started/serialization/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h2 id="data-serializer" class="section"><a class="anchor-link left" href="#data
<pre class="keep-together pdf epub"><code class="nohighlight"><span class="keyword">import</span><span> </span><span class="identifier">com</span><span>.</span><span class="identifier">commercetools</span><span>.</span><span class="identifier">queue</span><span>.</span><span class="type-name">Serializer</span><span>

</span><span class="keyword">implicit</span><span> </span><span class="keyword">val</span><span> </span><span class="identifier">serializer</span><span>: </span><span class="type-name">Serializer</span><span>[</span><span class="type-name">Int</span><span>] = </span><span class="identifier">_</span><span>.</span><span class="identifier">toString</span><span>
</span><span class="comment">// serializer: Serializer[Int] = repl.MdocSession$MdocApp$$anonfun$1@194ed0cd</span></code></pre>
</span><span class="comment">// serializer: Serializer[Int] = repl.MdocSession$MdocApp$$anonfun$1@4cb59610</span></code></pre>
<p>The library provides natively a <em>no-op</em> serializer for <code>String</code>s.</p>

<h2 id="data-deserializer" class="section"><a class="anchor-link left" href="#data-deserializer"><i class="icofont-laika link">&#xef71;</i></a>Data <code>Deserializer</code></h2>
Expand All @@ -142,7 +142,7 @@ <h2 id="data-deserializer" class="section"><a class="anchor-link left" href="#da
</span><span class="keyword">import</span><span> </span><span class="identifier">com</span><span>.</span><span class="identifier">commercetools</span><span>.</span><span class="identifier">queue</span><span>.</span><span class="type-name">Deserializer</span><span>

</span><span class="keyword">implicit</span><span> </span><span class="keyword">val</span><span> </span><span class="identifier">deserializer</span><span>: </span><span class="type-name">Deserializer</span><span>[</span><span class="type-name">Int</span><span>] = </span><span class="identifier">s</span><span> =&gt; </span><span class="type-name">Either</span><span>.</span><span class="identifier">catchNonFatal</span><span>(</span><span class="identifier">s</span><span>.</span><span class="identifier">toInt</span><span>)
</span><span class="comment">// deserializer: Deserializer[Int] = repl.MdocSession$MdocApp$$anonfun$2@75869056</span></code></pre>
</span><span class="comment">// deserializer: Deserializer[Int] = repl.MdocSession$MdocApp$$anonfun$2@a56c83d</span></code></pre>
<p>The library provides natively a <em>no-op</em> deserializer for <code>String</code>s.</p>

<h2 id="library-integration" class="section"><a class="anchor-link left" href="#library-integration"><i class="icofont-laika link">&#xef71;</i></a>Library integration</h2>
Expand Down

0 comments on commit a25f662

Please sign in to comment.