pub fn next<T: for<'de> Deserialize<'de>>(
        field: &'static str,
        args: &mut impl Iterator<Item = JValue>,
    ) -> Result<T, ArgsError> {
        let value = args.next().ok_or(MissingField(field))?;
        let value: T = Self::deserialize(field, value)?;

        Ok(value)
    }
/// Retrieves next json value from iterator, parse it to T
Retrieves next json value from iterator, parse it to T
Retrieves next json value from iterator parse it to T
pub fn next<T: for<'de> Deserialize<'de>>(
        field: &'static str,
        args: &mut impl Iterator<Item = JValue>,
    ) -> Result<T, ArgsError> {
        let value = args.next().ok_or(MissingField(field))?;
        let value: T = Self::deserialize(field, value)?;
        Ok(value)
    }
pub fn next < T : for < ' de > Deserialize < ' de > > ( field : & ' static str , args : & mut impl Iterator < Item = JValue > , ) -> Result < T , ArgsError > { let value = args . next ( ) . ok_or ( MissingField ( field ) ) ? ; let value : T = Self :: deserialize ( field , value ) ? ; Ok ( value ) }
Retrieves next json value from iterator, parse it to T
Retrieves next json value from iterator parse it to T
field
&'static str
args
&mut impl Iterator<Item = JValue>