pub enum GroupingStrategy {
ByEntity,
ByAction,
}Expand description
How events should be grouped into paragraphs.
Variants§
ByEntity
Group consecutive events that share an entity name; sort paragraphs by highest salience first. This is the default and produces tight, entity-focused narratives.
ByAction
Group events by rhetorical category (removals, additions, each modification sub-type). Produces section-style narratives useful for release notes or high-level change summaries. Within a category, events are further grouped by entity so multiple changes to the same entity still flow together.
Trait Implementations§
Source§impl Clone for GroupingStrategy
impl Clone for GroupingStrategy
Source§fn clone(&self) -> GroupingStrategy
fn clone(&self) -> GroupingStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GroupingStrategy
impl Debug for GroupingStrategy
Source§impl Default for GroupingStrategy
impl Default for GroupingStrategy
Source§fn default() -> GroupingStrategy
fn default() -> GroupingStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for GroupingStrategy
impl PartialEq for GroupingStrategy
Source§fn eq(&self, other: &GroupingStrategy) -> bool
fn eq(&self, other: &GroupingStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GroupingStrategy
impl Eq for GroupingStrategy
impl StructuralPartialEq for GroupingStrategy
Auto Trait Implementations§
impl Freeze for GroupingStrategy
impl RefUnwindSafe for GroupingStrategy
impl Send for GroupingStrategy
impl Sync for GroupingStrategy
impl Unpin for GroupingStrategy
impl UnsafeUnpin for GroupingStrategy
impl UnwindSafe for GroupingStrategy
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