pub struct Config { /* private fields */ }Expand description
Configuration for documentation generation.
Implementations§
Source§impl Config
impl Config
Sourcepub fn new(
analysis_config: AnalysisConfig,
workspace: impl Into<PathBuf>,
output_dir: impl Into<PathBuf>,
) -> Self
pub fn new( analysis_config: AnalysisConfig, workspace: impl Into<PathBuf>, output_dir: impl Into<PathBuf>, ) -> Self
Create a new documentation configuration.
Sourcepub fn index_page(self, index_page: Option<PathBuf>) -> Self
pub fn index_page(self, index_page: Option<PathBuf>) -> Self
Overwrite the config’s index page with the new value.
Sourcepub fn init_light_mode(self, init_light_mode: bool) -> Self
pub fn init_light_mode(self, init_light_mode: bool) -> Self
Overwrite the config’s light mode default with the new value.
Sourcepub fn custom_theme(self, custom_theme: Option<PathBuf>) -> Self
pub fn custom_theme(self, custom_theme: Option<PathBuf>) -> Self
Overwrite the config’s custom theme with the new value.
Sourcepub fn custom_logo(self, custom_logo: Option<PathBuf>) -> Self
pub fn custom_logo(self, custom_logo: Option<PathBuf>) -> Self
Overwrite the config’s custom logo with the new value.
Sourcepub fn external_urls(self, external_urls: ExternalUrls) -> Self
pub fn external_urls(self, external_urls: ExternalUrls) -> Self
Overwrite the config’s external URLs with the new value.
Sourcepub fn alt_logo(self, alt_logo: Option<PathBuf>) -> Self
pub fn alt_logo(self, alt_logo: Option<PathBuf>) -> Self
Overwrite the config’s alternate logo with the new value.
Sourcepub fn additional_html(self, additional_html: AdditionalHtml) -> Self
pub fn additional_html(self, additional_html: AdditionalHtml) -> Self
Overwrite the config’s additional HTML with the new value.
Sourcepub fn enable_doc_comments(self, enable_doc_comments: bool) -> Self
pub fn enable_doc_comments(self, enable_doc_comments: bool) -> Self
Enable support for documentation comments.
NOTE: This is an experimental option, and will be removed in a future major release.
For more information, see the pre-RFC discussion here.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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