monostate 1.0.2

Type that deserializes only from one specific value
Documentation
1
2
3
4
5
use monostate::MustBe;

fn main() {
    let _ = MustBe!(1000u8);
}