pub struct GeneratorConfig {
pub output_format: OutputFormat,
pub include_examples: bool,
pub validate_examples: bool,
pub include_type_info: bool,
pub include_cross_refs: bool,
pub max_hierarchy_depth: usize,
pub include_private: bool,
pub custom_styling: Option<String>,
}Expand description
Configuration for the API reference generator
Fields§
§output_format: OutputFormatOutput format for the generated documentation
include_examples: boolWhether to include code examples in the output
validate_examples: boolWhether to validate examples by compilation
include_type_info: boolWhether to extract type information
include_cross_refs: boolWhether to generate cross-references
max_hierarchy_depth: usizeMaximum depth for trait hierarchy analysis
include_private: boolWhether to include private items
custom_styling: Option<String>Custom CSS/styling for HTML output
Implementations§
Source§impl GeneratorConfig
impl GeneratorConfig
Sourcepub fn with_output_format(self, format: OutputFormat) -> Self
pub fn with_output_format(self, format: OutputFormat) -> Self
Set the output format
Sourcepub fn with_validation(self, validate: bool) -> Self
pub fn with_validation(self, validate: bool) -> Self
Enable or disable example validation
Sourcepub fn with_examples(self, include: bool) -> Self
pub fn with_examples(self, include: bool) -> Self
Enable or disable example inclusion
Sourcepub fn with_max_depth(self, depth: usize) -> Self
pub fn with_max_depth(self, depth: usize) -> Self
Set maximum hierarchy depth
Sourcepub fn with_private_items(self, include: bool) -> Self
pub fn with_private_items(self, include: bool) -> Self
Include private items in documentation
Sourcepub fn with_custom_styling(self, css: Option<String>) -> Self
pub fn with_custom_styling(self, css: Option<String>) -> Self
Set custom CSS styling for HTML output
Sourcepub fn with_type_info(self, include: bool) -> Self
pub fn with_type_info(self, include: bool) -> Self
Enable or disable type information extraction
Sourcepub fn with_cross_refs(self, include: bool) -> Self
pub fn with_cross_refs(self, include: bool) -> Self
Enable or disable cross-reference generation
Trait Implementations§
Source§impl Clone for GeneratorConfig
impl Clone for GeneratorConfig
Source§fn clone(&self) -> GeneratorConfig
fn clone(&self) -> GeneratorConfig
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 GeneratorConfig
impl Debug for GeneratorConfig
Source§impl Default for GeneratorConfig
impl Default for GeneratorConfig
Source§impl<'de> Deserialize<'de> for GeneratorConfig
impl<'de> Deserialize<'de> for GeneratorConfig
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 GeneratorConfig
impl RefUnwindSafe for GeneratorConfig
impl Send for GeneratorConfig
impl Sync for GeneratorConfig
impl Unpin for GeneratorConfig
impl UnwindSafe for GeneratorConfig
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more