<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Iganin</author_name>
  <author_url>https://blog.hatena.ne.jp/Iganin/</author_url>
  <blog_title>Iganinのブログ</blog_title>
  <blog_url>https://iganin.hatenablog.com/</blog_url>
  <categories>
    <anon>iOS</anon>
    <anon>Swift</anon>
    <anon>技術</anon>
  </categories>
  <description>はじめに アプリを作成しているとクラスやStructの一意性の判別のためにidを良く使用します。 例えばUserを定義した場合、その一意性を決めるためにUser.idを定義します。 多くの場合はidはStringかIntで定義するかと思います。 idが一つだけならば良いのですが、 jobIdやgroupIdなど複数のIDを扱うようになると、 jobIdとgroupIdにString型を使用していた場合、それらのIdの入れ間違いが発生し得ます。 Idは一意性を担保するため、この間違いは大きな障害に繋がりかねません。 本記事ではこのような問題を発生させない方法を記載します。 環境設定 以下の環境を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Figanin.hatenablog.com%2Fentry%2F2019%2F05%2F22%2F003321&quot; title=&quot;【iOS】RawReperesentableを使用してID間の使用ミスを避ける方法 - Iganinのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-22 00:33:21</published>
  <title>【iOS】RawReperesentableを使用してID間の使用ミスを避ける方法</title>
  <type>rich</type>
  <url>https://iganin.hatenablog.com/entry/2019/05/22/003321</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
