Skip to main content

BpmnParser

Trait BpmnParser 

Source
pub trait BpmnParser: Send + Sync {
    // Required methods
    fn parse(&self, input: &str) -> Result<ProcessDefinition, ParseError>;
    fn format(&self) -> BpmnFormat;
}
Expand description

BPMN Parser Trait

Unified interface for parsing BPMN definitions from different formats.

Required Methods§

Source

fn parse(&self, input: &str) -> Result<ProcessDefinition, ParseError>

Parse input string into ProcessDefinition

Source

fn format(&self) -> BpmnFormat

Get the format this parser handles

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§