pub struct EventLogClassifier {
pub name: String,
pub keys: Vec<String>,
}Expand description
A classifier declaration from a XES log header — names the key(s) that identify activity.
XES logs may declare one or more classifiers in their header. Each classifier
names an activity-identification strategy: the keys list the XES attribute
keys whose concatenated values form the activity label for that classifier.
The most common classifier is {"name": "concept:name", "keys": ["concept:name"]}.
This is structural metadata about the log schema; it carries no judgment and is not Evidence-wrapped.
Fields§
§name: StringHuman-readable name for this classifier (e.g. "concept:name").
keys: Vec<String>Ordered list of XES attribute keys whose values form the activity label.
Implementations§
Source§impl EventLogClassifier
impl EventLogClassifier
Sourcepub fn new(
name: impl Into<String>,
keys: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn new( name: impl Into<String>, keys: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Construct a classifier from a name and an iterator of keys.
use wasm4pm_compat::eventlog::EventLogClassifier;
let c = EventLogClassifier::new("concept:name", ["concept:name"]);
assert_eq!(c.name, "concept:name");
assert_eq!(c.keys, ["concept:name"]);Trait Implementations§
Source§impl Clone for EventLogClassifier
impl Clone for EventLogClassifier
Source§fn clone(&self) -> EventLogClassifier
fn clone(&self) -> EventLogClassifier
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 EventLogClassifier
impl Debug for EventLogClassifier
impl Eq for EventLogClassifier
Source§impl PartialEq for EventLogClassifier
impl PartialEq for EventLogClassifier
Source§fn eq(&self, other: &EventLogClassifier) -> bool
fn eq(&self, other: &EventLogClassifier) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EventLogClassifier
Auto Trait Implementations§
impl Freeze for EventLogClassifier
impl RefUnwindSafe for EventLogClassifier
impl Send for EventLogClassifier
impl Sync for EventLogClassifier
impl Unpin for EventLogClassifier
impl UnsafeUnpin for EventLogClassifier
impl UnwindSafe for EventLogClassifier
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