Skip to main content

default_classifier

Function default_classifier 

Source
pub fn default_classifier(key: &str) -> RhetoricalCategory
Expand description

Default template-key classifier used by GroupingStrategy::ByAction.

Looks at the last dotted segment of the key and maps well-known action names to RhetoricalCategory:

Use DocumentPlan::from_events_classified to supply a custom classifier when the defaults don’t fit the domain.