pub struct DocGenConfig {
pub output_dir: PathBuf,
pub json_output: String,
pub separate_pages: bool,
pub intro_message: Option<String>,
pub index_title: Option<String>,
pub contents_table: bool,
}Expand description
Configuration for documentation generation from pyproject.toml
Fields§
§output_dir: PathBufOutput directory for generated documentation
json_output: StringName of the JSON output file
separate_pages: boolGenerate separate .rst pages for each module (default: true)
intro_message: Option<String>Custom intro message for index.rst (default: standard message, empty string to omit)
index_title: Option<String>Custom title for index.rst (default: “{package_name} API Reference”, empty string to use “API Reference”)
contents_table: boolGenerate module contents tables (default: false)
Implementations§
Source§impl DocGenConfig
impl DocGenConfig
Sourcepub fn to_relative_posix_path(&self, base_dir: &Path) -> String
pub fn to_relative_posix_path(&self, base_dir: &Path) -> String
Convert output_dir to relative POSIX path for JSON serialization
Trait Implementations§
Source§impl Clone for DocGenConfig
impl Clone for DocGenConfig
Source§fn clone(&self) -> DocGenConfig
fn clone(&self) -> DocGenConfig
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 DocGenConfig
impl Debug for DocGenConfig
Source§impl Default for DocGenConfig
impl Default for DocGenConfig
Source§impl<'de> Deserialize<'de> for DocGenConfig
impl<'de> Deserialize<'de> for DocGenConfig
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
Source§impl PartialEq for DocGenConfig
impl PartialEq for DocGenConfig
Source§impl Serialize for DocGenConfig
impl Serialize for DocGenConfig
impl Eq for DocGenConfig
impl StructuralPartialEq for DocGenConfig
Auto Trait Implementations§
impl Freeze for DocGenConfig
impl RefUnwindSafe for DocGenConfig
impl Send for DocGenConfig
impl Sync for DocGenConfig
impl Unpin for DocGenConfig
impl UnwindSafe for DocGenConfig
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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