pub enum Rule {
Show 14 variants
full_checkbox,
empty_checkbox,
checkbox,
habit_number,
description,
goal_metric,
time_period,
category,
optional_category,
tag,
optional_tags,
completion_status,
divider,
habit_record,
}Variants§
full_checkbox
Matches a filled checkbox symbol (■) indicating a completed day.
empty_checkbox
Matches an empty checkbox symbol (□) indicating an incomplete day.
checkbox
Matches either a filled (■) or empty (□) checkbox.
habit_number
Matches the habit number, which is one or more digits.
description
Matches the habit description, allowing alphanumeric characters, spaces, and colons.
goal_metric
Matches the goal metric, allowing integer or decimal numbers.
time_period
Matches the time period, which includes a number followed by a unit (days, day, weeks, week).
category
optional_category
Matches an optional category enclosed in square brackets (e.g., [fitness]).
tag
Matches optional tags enclosed in curly braces, allowing multiple tags separated by commas (e.g., {health, productivity}).
completion_status
Matches a sequence of checkboxes (□ or ■), allowing spaces between them.
divider
Matches a divider character, which can be pipes (│), asterisks (*), colons (:), or spaces.
habit_record
Matches a complete habit record, including all fields and optional components.