pub struct FunctionDoc {
pub name: String,
pub description: String,
pub params: Vec<(String, String)>,
pub returns: String,
pub example: Option<String>,
}Expand description
函数文档信息
Fields§
§name: String函数名称
description: String函数描述
params: Vec<(String, String)>参数列表(参数名和描述)
returns: String返回值描述
example: Option<String>使用示例
Trait Implementations§
Source§impl Clone for FunctionDoc
impl Clone for FunctionDoc
Source§fn clone(&self) -> FunctionDoc
fn clone(&self) -> FunctionDoc
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 FunctionDoc
impl RefUnwindSafe for FunctionDoc
impl Send for FunctionDoc
impl Sync for FunctionDoc
impl Unpin for FunctionDoc
impl UnwindSafe for FunctionDoc
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