pub struct FormatDetector;Expand description
Format Detector
Detects the format of BPMN input data (JSON or XML).
Implementations§
Source§impl FormatDetector
impl FormatDetector
Sourcepub fn detect(input: &str) -> Result<BpmnFormat, DetectionError>
pub fn detect(input: &str) -> Result<BpmnFormat, DetectionError>
Sourcepub fn detect_with_confidence(
input: &str,
) -> Result<(BpmnFormat, f64), DetectionError>
pub fn detect_with_confidence( input: &str, ) -> Result<(BpmnFormat, f64), DetectionError>
Detect format with confidence score
Returns the detected format along with a confidence score (0.0 to 1.0).
Auto Trait Implementations§
impl Freeze for FormatDetector
impl RefUnwindSafe for FormatDetector
impl Send for FormatDetector
impl Sync for FormatDetector
impl Unpin for FormatDetector
impl UnsafeUnpin for FormatDetector
impl UnwindSafe for FormatDetector
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