notion2md/
builder.rs

1use crate::{converters::Converters, notion_to_md::NotionToMarkdown};
2use notion_client::endpoints::Client;
3
4pub struct NotionToMarkdownBuilder {
5    client: Client,
6    pub converters: Converters,
7}
8
9impl NotionToMarkdownBuilder {
10    pub fn new(client: Client) -> Self {
11        Self {
12            client,
13            converters: Converters::default(),
14        }
15    }
16
17    pub fn build(self) -> NotionToMarkdown {
18        NotionToMarkdown::new(self.client, self.converters)
19    }
20}