pub struct NavConfig {
    pub use_path_in_nav_bar: bool,
    pub nav_bg_color: String,
    pub nav_bg_image: String,
    pub nav_bg_image_size: NavBgImageSize,
    pub nav_bg_image_repeat: NavBgImageRepeat,
    pub nav_text_color: String,
    pub nav_hover_bg_color: String,
    pub nav_hover_text_color: String,
    pub nav_accent_color: String,
    pub nav_item_spacing: NavItemSpacing,
}
Expand description

A struct containing information about where and how the openapi.json files are served.

Fields

use_path_in_nav_bar: bool

Set true to show API paths in the navigation bar instead of summary/description.

The default is false.

nav_bg_color: String

Navigation bar’s background color.

nav_bg_image: String

URL of navigation bar’s background image.

nav_bg_image_size: NavBgImageSize

Navigation bar’s background image size (same as css background-size property).

The default is NavBgImageSize::Auto.

nav_bg_image_repeat: NavBgImageRepeat

Navigation bar’s background image repeat (same as css background-repeat property).

The default is NavBgImageSize::Repeat.

nav_text_color: String

Navigation bar’s Text color.

nav_hover_bg_color: String

Background color of the navigation item on mouse-over.

nav_hover_text_color: String

Text color of the navigation item on mouse-over.

nav_accent_color: String

Current selected item indicator.

nav_item_spacing: NavItemSpacing

Controls navigation item spacing.

The default is NavItemSpacing::Default.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts self into a collection.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more