pub struct CrateExtra {
pub readme_content: Option<String>,
pub examples_readme_content: Option<String>,
pub examples: Vec<(String, String)>,
}Expand description
Holds extra crate information like README and examples.
This data is read from the crate’s source directory and can be included in the generated Markdown documentation.
Fields§
§readme_content: Option<String>The content of the crate’s main README.md or README file.
examples_readme_content: Option<String>The content of the README.md or README file within the examples/ directory.
examples: Vec<(String, String)>A list of (filename, content) tuples for Rust files found in the examples/ directory.
Trait Implementations§
Source§impl Clone for CrateExtra
impl Clone for CrateExtra
Source§fn clone(&self) -> CrateExtra
fn clone(&self) -> CrateExtra
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 moreSource§impl Debug for CrateExtra
impl Debug for CrateExtra
Source§impl Default for CrateExtra
impl Default for CrateExtra
Source§fn default() -> CrateExtra
fn default() -> CrateExtra
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CrateExtra
impl RefUnwindSafe for CrateExtra
impl Send for CrateExtra
impl Sync for CrateExtra
impl Unpin for CrateExtra
impl UnwindSafe for CrateExtra
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