pub struct DocsTreeBuilder { /* private fields */ }Expand description
A builder for a DocsTree which represents the docs directory.
Implementations§
Source§impl DocsTreeBuilder
impl DocsTreeBuilder
Sourcepub fn maybe_homepage(self, homepage: Option<impl Into<PathBuf>>) -> Self
pub fn maybe_homepage(self, homepage: Option<impl Into<PathBuf>>) -> Self
Set the homepage for the docs with an option.
Sourcepub fn maybe_custom_theme(self, theme: Option<impl AsRef<Path>>) -> Result<Self>
pub fn maybe_custom_theme(self, theme: Option<impl AsRef<Path>>) -> Result<Self>
Set the custom theme for the docs with an option.
Sourcepub fn custom_theme(self, theme: impl AsRef<Path>) -> Result<Self>
pub fn custom_theme(self, theme: impl AsRef<Path>) -> Result<Self>
Set the custom theme for the docs.
Sourcepub fn maybe_logo(self, logo: Option<impl Into<PathBuf>>) -> Self
pub fn maybe_logo(self, logo: Option<impl Into<PathBuf>>) -> Self
Set the custom logo for the left sidebar with an option.
Sourcepub fn maybe_alt_logo(self, logo: Option<impl Into<PathBuf>>) -> Self
pub fn maybe_alt_logo(self, logo: Option<impl Into<PathBuf>>) -> Self
Set the alt (i.e. light mode) custom logo for the left sidebar with an option.
Sourcepub fn alt_logo(self, logo: impl Into<PathBuf>) -> Self
pub fn alt_logo(self, logo: impl Into<PathBuf>) -> Self
Set the alt (i.e. light mode) custom logo for the left sidebar.
Sourcepub fn additional_javascript(self, js: AdditionalScript) -> Self
pub fn additional_javascript(self, js: AdditionalScript) -> Self
Set the additional javascript for each page.
Sourcepub fn prefer_full_directory(self, prefer_full_directory: bool) -> Self
pub fn prefer_full_directory(self, prefer_full_directory: bool) -> Self
Set whether the “Full Directory” view should be initialized instead of the “Workflows” view of the left sidebar.
Sourcepub fn init_light_mode(self, init_light_mode: bool) -> Self
pub fn init_light_mode(self, init_light_mode: bool) -> Self
Set whether light mode should be the initial view instead of dark mode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocsTreeBuilder
impl RefUnwindSafe for DocsTreeBuilder
impl Send for DocsTreeBuilder
impl Sync for DocsTreeBuilder
impl Unpin for DocsTreeBuilder
impl UnwindSafe for DocsTreeBuilder
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