pub trait SourceFormat<T: DeserializeOwned> {
// Required methods
fn should_parse(&self, source: &Source) -> bool;
fn parse(
&self,
source: &Source,
content: &str,
cache_path: Option<&Path>,
) -> Result<T, ConfigError>;
}Expand description
Parses a source into a specific format.
Required Methods§
Sourcefn should_parse(&self, source: &Source) -> bool
fn should_parse(&self, source: &Source) -> bool
Should this instance parse the provided source?