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

Method new

pdf2md/server/src/models.rs:272–284  ·  view source on GitHub ↗
(task: FileTaskClickhouse)

Source from the content-addressed store, hash-verified

270
271impl GetTaskResponse {
272 pub fn new(task: FileTaskClickhouse) -> Self {
273 Self {
274 id: task.id.clone(),
275 file_name: task.file_name.clone(),
276 file_url: None,
277 total_document_pages: task.pages,
278 pages_processed: task.pages_processed,
279 status: task.status,
280 created_at: task.created_at.to_string(),
281 pagination_token: None,
282 pages: None,
283 }
284 }
285
286 pub fn new_with_pages(
287 task: FileTaskClickhouse,

Callers

nothing calls this directly

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected