pub trait HasLen { fn length(&self) -> u64; }
Trait to implement if one wants to make the length validator work for more types
length
A bit sad it’s not there by default in Rust