pub fn is_option(&self) -> bool {
    let typ = self.typ();

    let opt = match typ {
      syn::Type::Path(typepath) if typepath.qself.is_none() => Some(typepath.path.clone()),
      _ => None,
    };

    if let Some(o) = opt {
      extract_option_segment(&o).is_some()
    } else {
      false
    }
  }
/// check if the field is an Option to avoid nested Options.
check if the field is an Option to avoid nested Options.
check if the field is an Option to avoid nested Options .
pub fn is_option(&self) -> bool {
    let typ = self.typ();
    let opt = match typ {
      syn::Type::Path(typepath) if typepath.qself.is_none() => Some(typepath.path.clone()),
      _ => None,
    };
    if let Some(o) = opt {
      extract_option_segment(&o).is_some()
    } else {
      false
    }
  }
pub fn is_option ( & self ) -> bool { let typ = self . typ ( ) ; let opt = match typ { syn :: Type :: Path ( typepath ) if typepath . qself . is_none ( ) => Some ( typepath . path . clone ( ) ) , _ => None , } ; if let Some ( o ) = opt { extract_option_segment ( & o ) . is_some ( ) } else { false } }
check if the field is an Option to avoid nested Options.
check if the field is an Option to avoid nested Options .
&self
&self