pub fn opt_bool<'de, D: Deserializer<'de>>( d: D, ) -> Result<Option<bool>, D::Error>
Reads a boolean; 0/1 and "true"/"false" are accepted.
0
1
"true"
"false"
Only when the input itself is malformed.