pub struct Ocel2Exporter {
pub include_metadata: bool,
pub include_anomalies: bool,
pub pretty_print: bool,
}Expand description
OCEL 2.0 exporter.
Fields§
§include_metadata: boolInclude metadata attributes
include_anomalies: boolInclude anomaly markers
pretty_print: boolPretty print JSON
Implementations§
Source§impl Ocel2Exporter
impl Ocel2Exporter
Sourcepub fn with_metadata(self, include: bool) -> Self
pub fn with_metadata(self, include: bool) -> Self
Set whether to include metadata attributes.
Sourcepub fn with_anomalies(self, include: bool) -> Self
pub fn with_anomalies(self, include: bool) -> Self
Set whether to include anomaly markers.
Sourcepub fn with_pretty_print(self, pretty: bool) -> Self
pub fn with_pretty_print(self, pretty: bool) -> Self
Set whether to pretty print the output.
Sourcepub fn convert(&self, log: &OcpmEventLog) -> Ocel2Log
pub fn convert(&self, log: &OcpmEventLog) -> Ocel2Log
Convert an OCPM event log to OCEL 2.0 format.
Sourcepub fn export_to_file<P: AsRef<Path>>(
&self,
log: &OcpmEventLog,
path: P,
) -> Result<()>
pub fn export_to_file<P: AsRef<Path>>( &self, log: &OcpmEventLog, path: P, ) -> Result<()>
Export an OCPM event log to a JSON file.
Sourcepub fn export_to_string(&self, log: &OcpmEventLog) -> Result<String>
pub fn export_to_string(&self, log: &OcpmEventLog) -> Result<String>
Export an OCPM event log to a JSON string.
Sourcepub fn export_to_writer<W: Write>(
&self,
log: &OcpmEventLog,
writer: W,
) -> Result<()>
pub fn export_to_writer<W: Write>( &self, log: &OcpmEventLog, writer: W, ) -> Result<()>
Export an OCPM event log to a writer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ocel2Exporter
impl RefUnwindSafe for Ocel2Exporter
impl Send for Ocel2Exporter
impl Sync for Ocel2Exporter
impl Unpin for Ocel2Exporter
impl UnwindSafe for Ocel2Exporter
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