Document parser fields

Michael Ekstrand 10 months ago
parent
commit
af73d15a92
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/commands/parse_isbns/parsers.rs
@@ -27,12 +27,19 @@ static IGNORES: &'static [&'static str] = &[
 
 
 /// Definitions for parsing ISBN strings.
 /// Definitions for parsing ISBN strings.
 pub struct ParserDefs {
 pub struct ParserDefs {
+  /// Matcher for text that may appear before an ISBN
   lead: Regex,
   lead: Regex,
+  /// Matcher for a single ISBN
   isbn: Regex,
   isbn: Regex,
+  /// Matcher for a "tag" after an ISBN
   tag: Regex,
   tag: Regex,
+  /// Matcher for separarators between multiple tags
   tag_sep: Regex,
   tag_sep: Regex,
+  /// Matcher for text to skip before possibly reading another ISBN
   tail_skip: Regex,
   tail_skip: Regex,
+  /// Matcher for characters to remove from a parsed ISBN
   clean: Regex,
   clean: Regex,
+  /// Matcher for text that is known not to contain any parseable ISBNs
   unmatch_ignore: RegexSet
   unmatch_ignore: RegexSet
 }
 }