import { StructError } from "https://deno.land/x/superstruct@v2.0.3-1/error.ts";
StructError
objects are thrown (or returned) when validation fails.
Validation logic is design to exit early for maximum performance. The error
represents the first error encountered during validation. For more detail,
the error.failures
property is a generator function that can be run to
continue validation and receive all the failures in the data.