title: How do I implement sqlx::FromRow trait maually?
body: <p>I am trying to manually implement <code>sqlx::FrowRow</code> instead of using <code>derive</code>, since some custom initialization logic is needed (ex. convert integer <code>i16</code> to enum).</p>
  <p>Default impl is generated like this:</p>
  <pre class="lang-rust prettyprint-override"><code>use sqlx::FromRow;
  
  impl FromRow for User {
      fn from_row(row: &amp;'r R) -&gt; Result&lt;Self, sqlx::Error&gt; {
          todo!()
      }
  }
  </code></pre>
  <p>But it's unclear, what lifetime and type should I use.</p>