pub struct MarkdownlintConfig(pub HashMap<String, Value>);Expand description
Represents a generic markdownlint config (rule keys to values)
Tuple Fields§
§0: HashMap<String, Value>Implementations§
Source§impl MarkdownlintConfig
Map a MarkdownlintConfig to rumdl’s internal Config format
impl MarkdownlintConfig
Map a MarkdownlintConfig to rumdl’s internal Config format
Sourcepub fn map_to_sourced_rumdl_config(
&self,
file_path: Option<&str>,
) -> SourcedConfig
pub fn map_to_sourced_rumdl_config( &self, file_path: Option<&str>, ) -> SourcedConfig
Map to a SourcedConfig, tracking provenance as Markdownlint for all values.
Sourcepub fn map_to_sourced_rumdl_config_fragment(
&self,
file_path: Option<&str>,
) -> SourcedConfigFragment
pub fn map_to_sourced_rumdl_config_fragment( &self, file_path: Option<&str>, ) -> SourcedConfigFragment
Map to a SourcedConfigFragment, for use in config loading.
Trait Implementations§
Source§impl Debug for MarkdownlintConfig
impl Debug for MarkdownlintConfig
Source§impl<'de> Deserialize<'de> for MarkdownlintConfig
impl<'de> Deserialize<'de> for MarkdownlintConfig
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
Auto Trait Implementations§
impl Freeze for MarkdownlintConfig
impl RefUnwindSafe for MarkdownlintConfig
impl Send for MarkdownlintConfig
impl Sync for MarkdownlintConfig
impl Unpin for MarkdownlintConfig
impl UnwindSafe for MarkdownlintConfig
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> 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