Struct move_docgen::DocgenOptions
source · [−]pub struct DocgenOptions {Show 14 fields
pub section_level_start: usize,
pub include_private_fun: bool,
pub include_specs: bool,
pub specs_inlined: bool,
pub include_impl: bool,
pub toc_depth: usize,
pub collapsed_sections: bool,
pub output_directory: String,
pub doc_path: Vec<String>,
pub root_doc_templates: Vec<String>,
pub references_file: Option<String>,
pub include_dep_diagrams: bool,
pub include_call_diagrams: bool,
pub compile_relative_to_output_dir: bool,
}
Expand description
Options passed into the documentation generator.
Fields
section_level_start: usize
The level where we start sectioning. Often markdown sections are rendered with unnecessary large section fonts, setting this value high reduces the size.
include_private_fun: bool
Whether to include private functions in the generated docs.
include_specs: bool
Whether to include specifications in the generated docs.
specs_inlined: bool
Whether to put specifications in the same section as a declaration or put them all into an independent section.
include_impl: bool
Whether to include Move implementations.
toc_depth: usize
Max depth to which sections are displayed in table-of-contents.
collapsed_sections: bool
Whether to use collapsed sections (
output_directory: String
In which directory to store output.
doc_path: Vec<String>
In which directories to look for references.
root_doc_templates: Vec<String>
A list of paths to files containing templates for root documents for the generated documentation.
A root document is a markdown file which contains placeholders for generated documentation content. It is also processed following the same rules than documentation comments in Move, including creation of cross-references and Move code highlighting.
A placeholder is a single line starting with a markdown quotation marker of the following form:
> {{move-include NAME_OF_MODULE_OR_SCRIPT}}
> {{move-toc}}
> {{move-index}}
These lines will be replaced by the generated content of the module or script, or a table of contents, respectively.
For a module or script which is included in the root document, no separate file is generated. References between the included and the standalone module/script content work transparently.
references_file: Option<String>
An optional file containing reference definitions. The content of this file will be added to each generated markdown doc.
include_dep_diagrams: bool
Whether to include dependency diagrams in the generated docs.
include_call_diagrams: bool
Whether to include call diagrams in the generated docs.
compile_relative_to_output_dir: bool
If this is being compiled relative to a different place where it will be stored (output directory).
Trait Implementations
sourceimpl Clone for DocgenOptions
impl Clone for DocgenOptions
sourcefn clone(&self) -> DocgenOptions
fn clone(&self) -> DocgenOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DocgenOptions
impl Debug for DocgenOptions
sourceimpl Default for DocgenOptions
impl Default for DocgenOptions
sourceimpl<'de> Deserialize<'de> for DocgenOptions where
DocgenOptions: Default,
impl<'de> Deserialize<'de> for DocgenOptions where
DocgenOptions: Default,
sourcefn 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
sourceimpl Serialize for DocgenOptions
impl Serialize for DocgenOptions
Auto Trait Implementations
impl RefUnwindSafe for DocgenOptions
impl Send for DocgenOptions
impl Sync for DocgenOptions
impl Unpin for DocgenOptions
impl UnwindSafe for DocgenOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more