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,
}Expand description
Method metadata extracted from an impl block. Used internally by macros but exposed for advanced use cases.
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>
Trait Implementations§
Source§impl Clone for MethodInfo
impl Clone for MethodInfo
Source§fn clone(&self) -> MethodInfo
fn clone(&self) -> MethodInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MethodInfo
impl RefUnwindSafe for MethodInfo
impl Send for MethodInfo
impl Sync for MethodInfo
impl Unpin for MethodInfo
impl UnwindSafe for MethodInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more