<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>et-otawara</author_name>
  <author_url>https://blog.hatena.ne.jp/et-otawara/</author_url>
  <blog_title>EmotionTechテックブログ</blog_title>
  <blog_url>https://tech.emotion-tech.co.jp/</blog_url>
  <categories>
  </categories>
  <description>はじめに こんにちは、バックエンドエンジニアのおおたわらです。 Rustで開発をする中で、以下のようなケースがあります。 テストコードで使いたいアトリビュートがある #[derive] アトリビュートによるトレイト実装（assert! に指定するメッセージに構造体の中身を出力するため、Debug トレイトを実装したい、テストで entity の比較を行うため、PartialEq を実装したい etc.） mockall クレートの automock アトリビュートによるモック実装 プロダクトコードのコンパイルには含めたくない が、定義はプロダクトコード側にする必要がある アトリビュート（特に …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.emotion-tech.co.jp%2Fentry%2Frust_test_only_attribute&quot; title=&quot;Rustでテストでのみ必要なアトリビュートをプロダクトコードに含めない設定 - EmotionTechテックブログ&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>2023-12-05 00:00:00</published>
  <title>Rustでテストでのみ必要なアトリビュートをプロダクトコードに含めない設定</title>
  <type>rich</type>
  <url>https://tech.emotion-tech.co.jp/entry/rust_test_only_attribute</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
