Skip to main content

Crate server_less_parse

Crate server_less_parse 

Source
Expand description

Shared parsing utilities for server-less proc macros.

This crate provides common types and functions for extracting method information from impl blocks.

Structs§

MethodInfo
Parsed information about a method
ParamInfo
Parsed parameter information
ReturnInfo
Parsed return type information

Enums§

ParamLocation
Parameter location for HTTP requests

Functions§

extract_docs
Extract doc comments from attributes
extract_methods
Extract all methods from an impl block
extract_option_type
Check if a type is Option<T> and extract T
extract_result_types
Check if a type is Result<T, E> and extract T and E
extract_stream_item
Check if a type is impl Stream<Item=T> and extract T
get_impl_name
Get the struct name from an impl block
is_id_param
Check if a parameter name looks like an ID
is_option_type
Check if a type is Option<T>
is_unit_type
Check if a type is ()
parse_param_attrs
Parse #[param(…)] attributes from a parameter
parse_params
Parse function parameters (excluding self)
parse_return_type
Parse return type information