Skip to main content

string_or_seq

Function string_or_seq 

Source
pub fn string_or_seq<'de, D>(deserializer: D) -> Result<Vec<String>, D::Error>
where D: Deserializer<'de>,
Expand description

Deserialize npm platform fields (os, cpu, libc) from either a string or an array of strings. Missing fields, nulls, and non-string array entries mean “no constraint” and are dropped.