pub fn parse_options<T: CodecOptionsStruct>(opts: &CodecOptions) -> Result<T>Expand description
Parse a CodecOptions bag into a typed options struct.
Strict: unknown keys return Error::InvalidData; malformed values
do the same. The returned struct is seeded from
T::default() — any key not set in the bag keeps the struct’s
default value.