fn parse(input: &DeriveInput, fields: &Fields) -> Self {
    let mut model = Self::new(input);
    fields.iter().enumerate().for_each(|(idx, fs)| {
      if let Some(ident) = fs.ident.as_ref() {
        model.variant = SVariant::Named;
        model.fields.push(DataFields::Named {
          name: ident.clone(),
          typ: fs.ty.clone(),
          should_ignore: should_ignore(fs),
        });
      } else {
        model.variant = SVariant::Tuple;
        model.fields.push(DataFields::Unnamed {
          position: Literal::usize_unsuffixed(idx),
          typ: fs.ty.clone(),
          should_ignore: should_ignore(fs),
        });
      }
    });

    model
  }
/// parse the ast into for the `InputStruct`.
parse the ast into for the `InputStruct`.
parse the ast into for the ` InputStruct ` .
fn parse(input: &DeriveInput, fields: &Fields) -> Self {
    let mut model = Self::new(input);
    fields.iter().enumerate().for_each(|(idx, fs)| {
      if let Some(ident) = fs.ident.as_ref() {
        model.variant = SVariant::Named;
        model.fields.push(DataFields::Named {
          name: ident.clone(),
          typ: fs.ty.clone(),
          should_ignore: should_ignore(fs),
        });
      } else {
        model.variant = SVariant::Tuple;
        model.fields.push(DataFields::Unnamed {
          position: Literal::usize_unsuffixed(idx),
          typ: fs.ty.clone(),
          should_ignore: should_ignore(fs),
        });
      }
    });
    model
  }
fn parse ( input : & DeriveInput , fields : & Fields ) -> Self { let mut model = Self :: new ( input ) ; fields . iter ( ) . enumerate ( ) . for_each ( | ( idx , fs ) | { if let Some ( ident ) = fs . ident . as_ref ( ) { model . variant = SVariant :: Named ; model . fields . push ( DataFields :: Named { name : ident . clone ( ) , typ : fs . ty . clone ( ) , should_ignore : should_ignore ( fs ) , } ) ; } else { model . variant = SVariant :: Tuple ; model . fields . push ( DataFields :: Unnamed { position : Literal :: usize_unsuffixed ( idx ) , typ : fs . ty . clone ( ) , should_ignore : should_ignore ( fs ) , } ) ; } } ) ; model }
parse the ast into for the `InputStruct`.
parse the ast into for the ` InputStruct ` .
input
&DeriveInput
fields
&Fields
input
&DeriveInput
fields
&Fields