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

        Ok(Some(value))
    }
/// Retrieves a json value from iterator if it's not empty, and parses it to T
Retrieves a json value from iterator if it's not empty, and parses it to T
Retrieves a json value from iterator if it ' s not empty and parses it to T
pub fn maybe_next<T: for<'de> Deserialize<'de>>(
        field: &'static str,
        args: &mut impl Iterator<Item = JValue>,
    ) -> Result<Option<T>, ArgsError> {
        let value = ok_get!(args.next());
        let value: T = Self::deserialize(field, value)?;
        Ok(Some(value))
    }
pub fn maybe_next < T : for < ' de > Deserialize < ' de > > ( field : & ' static str , args : & mut impl Iterator < Item = JValue > , ) -> Result < Option < T > , ArgsError > { let value = ok_get ! ( args next ( ) ) ; let value : T = Self :: deserialize ( field , value ) ? ; Ok ( Some ( value ) ) }
Retrieves a json value from iterator if it's not empty, and parses it to T
Retrieves a json value from iterator if it ' s not empty and parses it to T
field
&'static str
args
&mut impl Iterator<Item = JValue>