pagesift-api 1.2.7

Firecrawl v2 compatible HTTP API for pagesift.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Internal early Markdown notification for opt-in streaming responses.
use tokio::sync::broadcast;

#[derive(Clone, Debug)]
pub struct MarkdownPreview {
    pub url: String,
    pub markdown: String,
    pub truncated: bool,
}

#[derive(Clone, Debug)]
pub struct MarkdownProgress(pub broadcast::Sender<MarkdownPreview>);

impl PartialEq for MarkdownProgress {
    fn eq(&self, other: &Self) -> bool {
        self.0.same_channel(&other.0)
    }
}