title: Use the Validator attribute (or an alternative) to validate a struct
body: <p>We're using <code>"FluentValidation.AspNetCore": "6.4.0-beta3"</code>. The <code>Validate</code> attribute works on a class. How do we use it with a struct? The compiler complains:</p>
  
  <blockquote>
    <p>Attribute 'Validator' is not valid on this declaration type. It is only valid on 'class, parameter' declarations. [netstandard1.6]
    ValidatorAttribute.ValidatorAttribute(Type validatorType)</p>
  </blockquote>
  
  <pre><code>[Validator(typeof(FoobarValidator))]
  public struct FoobarDto
  {
      public string Foo { get; set; }
  
      public string Bar { get; set; }
  }
  </code></pre>
  
  <p>If it is not possible to use the <code>Validate</code> attribute on a struct, then what is the alternative way to use fluent validation with structs? </p>