<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bouzuya</author_name>
  <author_url>https://blog.hatena.ne.jp/bouzuya/</author_url>
  <blog_title>bouzuya.hatenablog.com</blog_title>
  <blog_url>https://bouzuya.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>一昨日 (2025-09-15) の続きで、 RBAC: Role Based Access Control っぽいものを実装するときの型なんかを整理していて、 enum Permission の variant と String の変換の boilerplate code が良くないなと思った。 crates:strum を使えばいいんだろうけど、ごちゃごちゃしていて依存も多いのでできれば使いたくない。 代替を調べたら crates:parse-display が候補に出てきたので、ドキュメントを見てみたり、 bouzuya/rust-examples の parse-display1 を書…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2025%2F09%2F17%2F231158&quot; title=&quot;enunm と string を変換する derive macro を提供する n 個目の crate をつくった / 下の子と焼肉 - bouzuya.hatenablog.com&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>2025-09-17 23:11:58</published>
  <title>enunm と string を変換する derive macro を提供する n 個目の crate をつくった / 下の子と焼肉</title>
  <type>rich</type>
  <url>https://bouzuya.hatenablog.com/entry/2025/09/17/231158</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
