Function download_file

Source
pub fn download_file(
    id: impl AsRef<str>,
) -> Result<(String, Vec<u8>), LlamaCoreError>
Expand description

Download a specific file by id.

§Arguments

  • id: The id of the target file.

§Returns

A tuple of (String, Vec<u8>). The first element is the filename, and the second element is the file content.