pub struct MarkdownMapping {
pub body: Option<String>,
pub heading1: Option<String>,
pub heading2: Option<String>,
pub heading3: Option<String>,
pub heading4: Option<String>,
pub heading5: Option<String>,
pub heading6: Option<String>,
pub code: Option<String>,
pub blockquote: Option<String>,
pub list_item: Option<String>,
}Expand description
Maps markdown elements to style names.
Example YAML:
markdown_mapping:
body: body_style
heading1: h1_style
code: code_styleFields§
§body: Option<String>Body text style.
heading1: Option<String>Heading 1 style.
heading2: Option<String>Heading 2 style.
heading3: Option<String>Heading 3 style.
heading4: Option<String>Heading 4 style.
heading5: Option<String>Heading 5 style.
heading6: Option<String>Heading 6 style.
code: Option<String>Code block style.
blockquote: Option<String>Blockquote style.
list_item: Option<String>List item style.
Trait Implementations§
Source§impl Clone for MarkdownMapping
impl Clone for MarkdownMapping
Source§fn clone(&self) -> MarkdownMapping
fn clone(&self) -> MarkdownMapping
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarkdownMapping
impl Debug for MarkdownMapping
Source§impl Default for MarkdownMapping
impl Default for MarkdownMapping
Source§fn default() -> MarkdownMapping
fn default() -> MarkdownMapping
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MarkdownMapping
impl<'de> Deserialize<'de> for MarkdownMapping
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for MarkdownMapping
impl JsonSchema for MarkdownMapping
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MarkdownMapping
impl PartialEq for MarkdownMapping
Source§impl Serialize for MarkdownMapping
impl Serialize for MarkdownMapping
impl StructuralPartialEq for MarkdownMapping
Auto Trait Implementations§
impl Freeze for MarkdownMapping
impl RefUnwindSafe for MarkdownMapping
impl Send for MarkdownMapping
impl Sync for MarkdownMapping
impl Unpin for MarkdownMapping
impl UnwindSafe for MarkdownMapping
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