fn parse_field_custom(&mut self, meta: syn::Meta) -> Option<Option<syn::Path>> {
        let s = match meta {
            Path(..) => return Some(None),
            NameValue(syn::MetaNameValue {
                lit: syn::Lit::Str(s),
                ..
            }) => s,
            _ => {
                self.errors
                    .push(syn::Error::new(meta.span(), "unsupported meta"));
                return None;
            }
        };

        match s.parse_with(syn::Path::parse_mod_style) {
            Ok(path) => Some(Some(path)),
            Err(error) => {
                self.errors.push(error);
                None
            }
        }
    }
/// Parse path to custom field function.
Parse path to custom field function.
Parse path to custom field function .
fn parse_field_custom(&mut self, meta: syn::Meta) -> Option<Option<syn::Path>> {
        let s = match meta {
            Path(..) => return Some(None),
            NameValue(syn::MetaNameValue {
                lit: syn::Lit::Str(s),
                ..
            }) => s,
            _ => {
                self.errors
                    .push(syn::Error::new(meta.span(), "unsupported meta"));
                return None;
            }
        };
        match s.parse_with(syn::Path::parse_mod_style) {
            Ok(path) => Some(Some(path)),
            Err(error) => {
                self.errors.push(error);
                None
            }
        }
    }
fn parse_field_custom ( & mut self , meta : syn :: Meta ) -> Option < Option < syn :: Path > > { let s = match meta { Path ( .. ) => return Some ( None ) , NameValue ( syn :: MetaNameValue { lit : syn :: Lit :: Str ( s ) , .. } ) => s , _ => { self . errors . push ( syn :: Error :: new ( meta . span ( ) , " " ) ) ; return None ; } } ; match s . parse_with ( syn :: Path :: parse_mod_style ) { Ok ( path ) => Some ( Some ( path ) ) , Err ( error ) => { self . errors . push ( error ) ; None } } }
Parse path to custom field function.
Parse path to custom field function .
&mut self
meta
syn::Meta
&mut self
meta
syn::Meta