pub struct MethodInfo {
pub name: String,
pub docs: Option<String>,
pub params: Vec<ParamInfo>,
pub return_type: String,
pub is_async: bool,
pub is_streaming: bool,
pub is_optional: bool,
pub is_result: bool,
pub group: Option<String>,
}Expand description
Runtime method metadata with string-based types.
This is a simplified, serialization-friendly representation of method
information intended for runtime introspection and tooling. Types are
stored as strings rather than syn AST nodes.
Not to be confused with [server_less_parse::MethodInfo], which is
the richer, syn-based representation used internally by proc macros
during code generation. The parse version retains full type information
(syn::Type, syn::Ident) and supports #[param(...)] attributes.
Fields§
§name: StringMethod name (e.g., “create_user”)
docs: Option<String>Documentation string from /// comments
params: Vec<ParamInfo>Parameter names and their type strings
return_type: StringReturn type string
is_async: boolWhether the method is async
is_streaming: boolWhether the return type is a Stream
is_optional: boolWhether the return type is Option<T>
is_result: boolWhether the return type is Result<T, E>
group: Option<String>Group display name for categorization
Trait Implementations§
Source§impl Clone for MethodInfo
impl Clone for MethodInfo
Source§fn clone(&self) -> MethodInfo
fn clone(&self) -> MethodInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more