File size: 324 Bytes
097eaf0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::document::model::Document;
use std::error::Error;

pub mod doc;
pub mod docx;
pub mod factory;
pub mod odt;
pub mod rtf;
pub mod xlsx;

pub trait DocumentProvider {
  fn parse_buffer(&self, data: &[u8]) -> Result<Document, Box<dyn Error + Send + Sync>>;

  #[allow(dead_code)]
  fn name(&self) -> &'static str;
}