pub struct DocEntry {Show 14 fields
pub name: String,
pub aliases: Vec<String>,
pub module: String,
pub section: Option<String>,
pub summary: String,
pub params: Vec<Param>,
pub returns: Option<String>,
pub since: Option<String>,
pub deprecated: bool,
pub see_also: Vec<String>,
pub examples: Vec<String>,
pub body: String,
pub syntax: Option<String>,
pub special_form: bool,
}Expand description
A fully resolved documentation entry (the serialized contract shared with LSP/REPL).
Fields§
§name: String§aliases: Vec<String>§module: String§section: Option<String>§summary: String§params: Vec<Param>§returns: Option<String>§since: Option<String>§deprecated: bool§see_also: Vec<String>§examples: Vec<String>Runnable example snippets (the contents of ```sema fenced blocks in the body).
body: StringThe full markdown body (including examples), used verbatim for hover.
syntax: Option<String>Syntax template for special forms (e.g. (let ((name value) ...) body ...)).
When present, shown as a signature block in hover and used as the label in
signature help. Overrides flat parameter rendering for forms with complex syntax.
special_form: booltrue for special forms (no params schema; syntax lives in the body).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DocEntry
impl<'de> Deserialize<'de> for DocEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DocEntry
impl RefUnwindSafe for DocEntry
impl Send for DocEntry
impl Sync for DocEntry
impl Unpin for DocEntry
impl UnsafeUnpin for DocEntry
impl UnwindSafe for DocEntry
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