pub struct ModuleFunction {
pub description: String,
pub params: Vec<ModuleParam>,
pub return_type: Option<String>,
}Expand description
Schema for a module function — describes parameters and return type. Used by LSP for completions, hover, and signature help.
Fields§
§description: String§params: Vec<ModuleParam>§return_type: Option<String>Trait Implementations§
Source§impl Clone for ModuleFunction
impl Clone for ModuleFunction
Source§fn clone(&self) -> ModuleFunction
fn clone(&self) -> ModuleFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModuleFunction
impl RefUnwindSafe for ModuleFunction
impl Send for ModuleFunction
impl Sync for ModuleFunction
impl Unpin for ModuleFunction
impl UnsafeUnpin for ModuleFunction
impl UnwindSafe for ModuleFunction
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