pub struct ModularGeneratorConfig {
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 new() -> GeneratorConfig
pub fn new() -> GeneratorConfig
Create a new generator configuration with default settings
Sourcepub fn with_output_format(self, format: OutputFormat) -> GeneratorConfig
pub fn with_output_format(self, format: OutputFormat) -> GeneratorConfig
Set the output format
Sourcepub fn with_validation(self, validate: bool) -> GeneratorConfig
pub fn with_validation(self, validate: bool) -> GeneratorConfig
Enable or disable example validation
Sourcepub fn with_examples(self, include: bool) -> GeneratorConfig
pub fn with_examples(self, include: bool) -> GeneratorConfig
Enable or disable example inclusion
Sourcepub fn with_max_depth(self, depth: usize) -> GeneratorConfig
pub fn with_max_depth(self, depth: usize) -> GeneratorConfig
Set maximum hierarchy depth
Sourcepub fn with_private_items(self, include: bool) -> GeneratorConfig
pub fn with_private_items(self, include: bool) -> GeneratorConfig
Include private items in documentation
Sourcepub fn with_custom_styling(self, css: Option<String>) -> GeneratorConfig
pub fn with_custom_styling(self, css: Option<String>) -> GeneratorConfig
Set custom CSS styling for HTML output
Sourcepub fn with_type_info(self, include: bool) -> GeneratorConfig
pub fn with_type_info(self, include: bool) -> GeneratorConfig
Enable or disable type information extraction
Sourcepub fn with_cross_refs(self, include: bool) -> GeneratorConfig
pub fn with_cross_refs(self, include: bool) -> GeneratorConfig
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§fn default() -> GeneratorConfig
fn default() -> GeneratorConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeneratorConfig
impl<'de> Deserialize<'de> for GeneratorConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GeneratorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GeneratorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GeneratorConfig
impl Serialize for GeneratorConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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