MCPcopy Create free account
hub / github.com/devflowinc/trieve / from_tasks

Method from_tasks

pdf2md/server/src/models.rs:130–142  ·  view source on GitHub ↗
(task: FileTaskClickhouse, page: ChunkClickhouse)

Source from the content-addressed store, hash-verified

128
129impl WebhookPayloadData {
130 pub fn from_tasks(task: FileTaskClickhouse, page: ChunkClickhouse) -> Self {
131 Self {
132 task_id: task.id.clone(),
133 file_name: task.id.clone(),
134 pages: task.pages,
135 pages_processed: task.pages_processed,
136 content: page.content.clone(),
137 page_num: page.page,
138 usage: page.usage.clone(),
139 status: task.status,
140 timestamp: task.created_at.to_string(),
141 }
142 }
143}
144
145#[derive(serde::Deserialize, serde::Serialize, Clone, Debug)]

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected