pub enum Cluster {
Zustimmung,
Ablehnung,
AblehnungKopfebene,
AblehnungPositionsebene,
AblehnungSummenebene,
Other(String),
}Expand description
Cluster classifier derived from the Cluster: hint in an EBD YAML.
Primary clusters (Zustimmung, Ablehnung) and the three Ablehnung
sub-levels referenced by REMADV/INVOIC conditions have named
variants; anything else (Änderung, Korrekturliste, Abweisung, …)
falls into Other preserving the raw label for future match-ups.
is_ablehnung returns true for both the plain Ablehnung variant
and all three sub-level variants, so UTILMD_Strom conditions like
[359] keep matching sub-level codes transparently.
Variants§
Zustimmung
Ablehnung
AblehnungKopfebene
AblehnungPositionsebene
AblehnungSummenebene
Other(String)
Preserves the raw cluster label (e.g. “Korrekturliste wegen Ablehnung”, “Änderung der Daten”, “Abweisung”) so future conditions can match on it without regenerating the data file.
Implementations§
Source§impl Cluster
impl Cluster
pub fn from_token(token: &str) -> Self
pub fn is_zustimmung(&self) -> bool
Sourcepub fn is_ablehnung(&self) -> bool
pub fn is_ablehnung(&self) -> bool
Any Ablehnung variant — plain or Kopf/Positions/Summenebene.
pub fn is_ablehnung_kopfebene(&self) -> bool
pub fn is_ablehnung_positionsebene(&self) -> bool
pub fn is_ablehnung_summenebene(&self) -> bool
Trait Implementations§
impl Eq for Cluster
impl StructuralPartialEq for Cluster
Auto Trait Implementations§
impl Freeze for Cluster
impl RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnsafeUnpin for Cluster
impl UnwindSafe for Cluster
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