pub struct Docs { /* private fields */ }Expand description
api.docs in the PHP package. Mount the pages with routes.
Implementations§
Source§impl Docs
impl Docs
Sourcepub const fn renderer(self, renderer: Renderer) -> Self
pub const fn renderer(self, renderer: Renderer) -> Self
Which page renders the reference (api.docs.renderer).
Sourcepub fn scalar_url(self, url: &str) -> Self
pub fn scalar_url(self, url: &str) -> Self
Where Scalar is loaded from (api.docs.scalar.url).
Sourcepub fn scalar_config(self, config: Map<String, Value>) -> Self
pub fn scalar_config(self, config: Map<String, Value>) -> Self
Options for Scalar.createApiReference (api.docs.scalar.config), such as theme.
Without a theme or customCss, the reference uses Fusion Stack’s colours. Scalar’s
developer toolbar and AI assistant are off unless set here.
Sourcepub const fn lint_fails(self, fails: bool) -> Self
pub const fn lint_fails(self, fails: bool) -> Self
Whether api:docs:lint exits with an error when anything has no description, for CI
(api.docs.lint set to fail). It only warns by default.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Docs
impl Freeze for Docswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for Docs
impl RefUnwindSafe for Docs
impl Send for Docs
impl Sync for Docs
impl Unpin for Docs
impl UnsafeUnpin for Docswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl UnwindSafe for Docs
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