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§
Sourcefn parse(&self, input: &str) -> Result<ProcessDefinition, ParseError>
fn parse(&self, input: &str) -> Result<ProcessDefinition, ParseError>
Parse input string into ProcessDefinition
Sourcefn format(&self) -> BpmnFormat
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".