pub enum DocNode {
Show 16 variants
Markdown(String),
Callout(CalloutNode),
Card(CardNode),
CardGroup(CardGroupNode),
Tabs(TabsNode),
Steps(StepsNode),
AccordionGroup(AccordionGroupNode),
CodeBlock(CodeBlockNode),
CodeGroup(CodeGroupNode),
ParamField(ParamFieldNode),
ResponseField(ResponseFieldNode),
Expandable(ExpandableNode),
RequestExample(RequestExampleNode),
ResponseExample(ResponseExampleNode),
Update(UpdateNode),
OpenApi(OpenApiNode),
}Expand description
A node in the parsed documentation tree.
Variants§
Markdown(String)
Plain markdown content to be rendered as HTML.
Callout(CalloutNode)
Callout box (Tip, Note, Warning, Info).
Card(CardNode)
Card with title, icon, optional link, and content.
CardGroup(CardGroupNode)
Group of cards in a grid layout.
Tabs(TabsNode)
Tabbed content container.
Steps(StepsNode)
Sequential steps guide.
AccordionGroup(AccordionGroupNode)
Collapsible accordion group.
CodeBlock(CodeBlockNode)
Code block with optional language.
CodeGroup(CodeGroupNode)
Code group with multiple language variants.
ParamField(ParamFieldNode)
API parameter field.
ResponseField(ResponseFieldNode)
API response field.
Expandable(ExpandableNode)
Expandable section.
RequestExample(RequestExampleNode)
Request example container.
ResponseExample(ResponseExampleNode)
Response example container.
Update(UpdateNode)
Changelog update entry.
OpenApi(OpenApiNode)
OpenAPI specification viewer.
Trait Implementations§
impl StructuralPartialEq for DocNode
Auto Trait Implementations§
impl Freeze for DocNode
impl RefUnwindSafe for DocNode
impl Send for DocNode
impl Sync for DocNode
impl Unpin for DocNode
impl UnsafeUnpin for DocNode
impl UnwindSafe for DocNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.