Function bitflags::serde::deserialize

source ·
pub fn deserialize<'de, B: Flags, D: Deserializer<'de>>(
    deserializer: D
) -> Result<B, D::Error>where
    B::Bits: ParseHex + Deserialize<'de>,
Expand description

Deserialize a set of flags from a human-readable string or their underlying bits.

Any unknown bits will be retained.