pub struct GuideEntry {
pub name: String,
pub summary: String,
pub content: String,
}Expand description
Parsed guide document.
Fields§
§name: StringTopic name, usually the markdown filename without .md.
summary: StringOne-line summary from front matter.
content: StringMarkdown body without front matter.
Implementations§
Source§impl GuideEntry
impl GuideEntry
Sourcepub fn new(
name: impl Into<String>,
summary: impl Into<String>,
content: impl Into<String>,
) -> Self
pub fn new( name: impl Into<String>, summary: impl Into<String>, content: impl Into<String>, ) -> Self
Creates a guide entry from explicit topic metadata and markdown content.
Sourcepub fn from_markdown_path(path: &str, content: &str) -> Self
pub fn from_markdown_path(path: &str, content: &str) -> Self
Parses a guide entry from a markdown path and content.
Trait Implementations§
Source§impl Clone for GuideEntry
impl Clone for GuideEntry
Source§fn clone(&self) -> GuideEntry
fn clone(&self) -> GuideEntry
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 moreSource§impl Debug for GuideEntry
impl Debug for GuideEntry
impl Eq for GuideEntry
Source§impl PartialEq for GuideEntry
impl PartialEq for GuideEntry
Source§fn eq(&self, other: &GuideEntry) -> bool
fn eq(&self, other: &GuideEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GuideEntry
Auto Trait Implementations§
impl Freeze for GuideEntry
impl RefUnwindSafe for GuideEntry
impl Send for GuideEntry
impl Sync for GuideEntry
impl Unpin for GuideEntry
impl UnsafeUnpin for GuideEntry
impl UnwindSafe for GuideEntry
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.