pub fn get_nested_type<'a>( segment: &'a PathSegment, message: &'static str, ) -> Result<&'a Type, Error>