title: How do I declare a "static" field in a struct in Rust?
body: <p>How do I declare a "static" field in a struct in Rust, preferably with a default value:</p>
  
  <pre><code>struct MyStruct {
      x: i32,               // instance
      y: i32,               // instance
      my_static: i32 = 123, // static, how?
  }
  
  fn main() {
      let a = get_value();
      if a == MyStruct::my_static {
          //...
      } else {
          //...
      }
  }
  </code></pre>