Skip to main content

Crate scalar_api_reference

Crate scalar_api_reference 

Source

Re-exports§

pub use config::AgentOptions;
pub use config::Source;

Modules§

config
Type-safe configuration types for the Scalar API reference.

Functions§

get_asset
Get a static asset by path
get_asset_with_mime
Get a static asset with MIME type information
get_mime_type
Determine MIME type based on file extension
render_scalar
Render Scalar HTML with embedded configuration and optional JS bundle URL
scalar_html
Return the Scalar HTML with embedded config and optional JS bundle URL
scalar_html_default
Return the Scalar HTML with embedded config using CDN JS bundle URL
scalar_html_from_json
Return the Scalar HTML with embedded config from a JSON string and optional JS bundle URL
scalar_html_from_json_default
Return the Scalar HTML with embedded config from a JSON string using CDN JS bundle URL