title: Is there a way to check a struct has a field and check its type?
body: <p>I am trying to write a test to determine whether <code>struct A</code> has a property <code>a</code> and its type is <code>i32</code>.</p>
  <pre class="lang-rust prettyprint-override"><code>pub struct A {
      a: i32,
  }
  
  #[test]
  pub fn test_A() {
      assert!(A.hasattr(&quot;a&quot;));
      assert_is_type!(A.a, i32);
  }
  </code></pre>