pub async fn serve_entry(
connection: &mut PgConnection,
service_name: String,
entry_id: usize,
) -> Result<EntryDownload, NotFound<String>>Expand description
Provide a downloadable file for an entry, looking the task up over the caller-supplied (pooled)
connection (the borrow ends before the file open). The download is named from the report’s
“Entry” name + the served file’s real extension (not the opaque task id): <document>.<ext> for
the import source archive, <document>_<service>.<ext> for a result archive.