pub struct ByteDocsBuilder { /* private fields */ }
Expand description
Builder pattern for creating Bytedocs
instances with custom configuration.
Provides a fluent API for configuring Bytedocs before instantiation.
Implementations§
Source§impl ByteDocsBuilder
impl ByteDocsBuilder
Sourcepub fn description(self, description: &str) -> Self
pub fn description(self, description: &str) -> Self
Sets the API description.
Sourcepub fn docs_path(self, docs_path: &str) -> Self
pub fn docs_path(self, docs_path: &str) -> Self
Sets the path where documentation will be served.
Sourcepub fn with_auth(self, auth_config: AuthConfig) -> Self
pub fn with_auth(self, auth_config: AuthConfig) -> Self
Enables authentication with the specified configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ByteDocsBuilder
impl RefUnwindSafe for ByteDocsBuilder
impl Send for ByteDocsBuilder
impl Sync for ByteDocsBuilder
impl Unpin for ByteDocsBuilder
impl UnwindSafe for ByteDocsBuilder
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