Spaces:
Sleeping
Sleeping
Download apps/api/native/src/document/providers/mod.rs from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/native/src/document/providers/mod.rs
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/apps/api/native/src/document/providers/mod.rs
-
curl -L -o mod.rs https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/native/src/document/providers/mod.rs
324 Bytes
| 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>>; | |
| fn name(&self) -> &'static str; | |
| } | |