pub struct PreprocessorConfig {
pub output_type: PlotlyOutputType,
pub input_type: PlotlyInputType,
pub offline_js_sources: bool,
}Expand description
NOTE: These configurations are printed as kebab-case names. Please pay attention when using.
Fields§
§output_type: PlotlyOutputTypeAbout the output form of the chart. This output format may affect the presentation of the chart.
In addition, in most cases, the different output forms can significantly affect the time at which the book is compiled.
Other: The inner is an enumeration.
input_type: PlotlyInputTypeAbout the input form of the chart.
Charts are usually in the form of code in a markdown document. At the time of input, we allow the code to be presented in different forms.
The two forms we consider for adoption are: a general script and a configuration file organized in a specific form. In theory, you can read and operate files directly from the current path by turning on some of the functions that come with MDBook.
offline_js_sources: boolAbout the script source control. If this is false(default), a JS script source from CDN will be injected; otherwise, an HTML script tag containing an embedded JS source will be added for offline use.
Trait Implementations§
Source§impl Clone for PreprocessorConfig
impl Clone for PreprocessorConfig
Source§fn clone(&self) -> PreprocessorConfig
fn clone(&self) -> PreprocessorConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PreprocessorConfig
impl Debug for PreprocessorConfig
Source§impl Default for PreprocessorConfig
impl Default for PreprocessorConfig
Source§fn default() -> PreprocessorConfig
fn default() -> PreprocessorConfig
Source§impl<'de> Deserialize<'de> for PreprocessorConfigwhere
PreprocessorConfig: Default,
impl<'de> Deserialize<'de> for PreprocessorConfigwhere
PreprocessorConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PreprocessorConfig
impl PartialEq for PreprocessorConfig
Source§impl Serialize for PreprocessorConfig
impl Serialize for PreprocessorConfig
impl Eq for PreprocessorConfig
impl StructuralPartialEq for PreprocessorConfig
Auto Trait Implementations§
impl Freeze for PreprocessorConfig
impl RefUnwindSafe for PreprocessorConfig
impl Send for PreprocessorConfig
impl Sync for PreprocessorConfig
impl Unpin for PreprocessorConfig
impl UnsafeUnpin for PreprocessorConfig
impl UnwindSafe for PreprocessorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more