pub struct MD040Config {
pub style: LanguageStyle,
pub preferred_aliases: HashMap<String, String>,
pub allowed_languages: Vec<String>,
pub disallowed_languages: Vec<String>,
pub unknown_language_action: UnknownLanguageAction,
}Expand description
Configuration for MD040 (Fenced code language)
Fields§
§style: LanguageStyleLanguage normalization style
preferred_aliases: HashMap<String, String>Override preferred label for specific languages Keys: Linguist canonical names (case-insensitive), Values: preferred alias
allowed_languages: Vec<String>Only allow these languages (empty = allow all) Uses Linguist canonical language names (case-insensitive)
disallowed_languages: Vec<String>Block these languages (ignored if allowed_languages is non-empty) Uses Linguist canonical language names (case-insensitive)
unknown_language_action: UnknownLanguageActionAction for unknown language labels not in Linguist
Trait Implementations§
Source§impl Clone for MD040Config
impl Clone for MD040Config
Source§fn clone(&self) -> MD040Config
fn clone(&self) -> MD040Config
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 MD040Config
impl Debug for MD040Config
Source§impl Default for MD040Config
impl Default for MD040Config
Source§fn default() -> MD040Config
fn default() -> MD040Config
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MD040Config
impl<'de> Deserialize<'de> for MD040Config
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 PartialEq for MD040Config
impl PartialEq for MD040Config
Source§impl RuleConfig for MD040Config
impl RuleConfig for MD040Config
Source§impl Serialize for MD040Config
impl Serialize for MD040Config
impl StructuralPartialEq for MD040Config
Auto Trait Implementations§
impl Freeze for MD040Config
impl RefUnwindSafe for MD040Config
impl Send for MD040Config
impl Sync for MD040Config
impl Unpin for MD040Config
impl UnwindSafe for MD040Config
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
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>
Converts
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>
Converts
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