pub struct ScalarOptions<'a> {
pub title: &'a str,
pub openapi_url: &'a str,
pub custom_css: &'a str,
pub dark_mode: bool,
pub hide_agent: bool,
pub hide_mcp: bool,
pub hide_client_button: bool,
pub hide_clients: bool,
}Available on crate feature
server only.Expand description
Options for the Scalar interactive API reference HTML shell.
Fields§
§title: &'a str§openapi_url: &'a strURL the browser fetches for the OpenAPI JSON (e.g. /api/openapi.json).
custom_css: &'a strExtra CSS injected into the page (and as Scalar customCss).
Typically theme tokens (include_str! of Tailwind) + a small bridge.
dark_mode: bool§hide_agent: bool§hide_mcp: bool§hide_clients: boolTrait Implementations§
Source§impl<'a> Clone for ScalarOptions<'a>
impl<'a> Clone for ScalarOptions<'a>
Source§fn clone(&self) -> ScalarOptions<'a>
fn clone(&self) -> ScalarOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ScalarOptions<'a>
impl<'a> Debug for ScalarOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ScalarOptions<'a>
impl<'a> RefUnwindSafe for ScalarOptions<'a>
impl<'a> Send for ScalarOptions<'a>
impl<'a> Sync for ScalarOptions<'a>
impl<'a> Unpin for ScalarOptions<'a>
impl<'a> UnsafeUnpin for ScalarOptions<'a>
impl<'a> UnwindSafe for ScalarOptions<'a>
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