Struct process_mining::XESImportOptions
source · pub struct XESImportOptions {
pub ignore_log_attributes_except: Option<HashSet<String>>,
pub ignore_trace_attributes_except: Option<HashSet<String>>,
pub ignore_event_attributes_except: Option<HashSet<String>>,
pub date_format: Option<String>,
pub sort_events_with_timestamp_key: Option<String>,
}
Expand description
Options for XES Import
See also build_ignore_attributes
for easy construction of attributes set to not ignore
Fields§
§ignore_log_attributes_except: Option<HashSet<String>>
If Some: Ignore all top-level log attributes, except attributes with keys in the provided allowlist
ignore_trace_attributes_except: Option<HashSet<String>>
If Some: Ignore all trace attributes, except attributes with keys in the provided allowlist
Does not effect global trace attributes
ignore_event_attributes_except: Option<HashSet<String>>
If Some: Ignore all event attributes except, attributes with keys in the provided allowlist
Does not effect global event attributes
date_format: Option<String>
Optional date format to use when parsing DateTimes (first trying chrono::DateTime
then falling back to chrono::NaiveDateTime
with UTC timezone).
See https://docs.rs/chrono/latest/chrono/format/strftime/index.html for all available Specifiers.
Will fall back to default formats (e.g., rfc3339) if parsing fails using passed date_format
sort_events_with_timestamp_key: Option<String>
Sort events via timestamp key directly when parsing:
- If None: No sorting (i.e., events of traces are included in order of occurence in event log)
- If Some(key):
- Sort events via the timestamp provided by key before emitting the trace
- If no value is present or it is invalid, the global default event attribute value with the provided key will be used (if it exists)
- if no valid timestamp is available from the event or the global default, it will be sorted before all other events (in stable ordering)
Trait Implementations§
source§impl Clone for XESImportOptions
impl Clone for XESImportOptions
source§fn clone(&self) -> XESImportOptions
fn clone(&self) -> XESImportOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for XESImportOptions
impl Debug for XESImportOptions
source§impl Default for XESImportOptions
impl Default for XESImportOptions
source§fn default() -> XESImportOptions
fn default() -> XESImportOptions
source§impl<'de> Deserialize<'de> for XESImportOptions
impl<'de> Deserialize<'de> for XESImportOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for XESImportOptions
impl PartialEq for XESImportOptions
source§fn eq(&self, other: &XESImportOptions) -> bool
fn eq(&self, other: &XESImportOptions) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for XESImportOptions
impl Serialize for XESImportOptions
impl Eq for XESImportOptions
impl StructuralPartialEq for XESImportOptions
Auto Trait Implementations§
impl Freeze for XESImportOptions
impl RefUnwindSafe for XESImportOptions
impl Send for XESImportOptions
impl Sync for XESImportOptions
impl Unpin for XESImportOptions
impl UnwindSafe for XESImportOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more