chunkify/
struct.rs

1use crate::*;
2
3/// Configuration for chunking operations.
4///
5/// Contains all necessary parameters for performing chunked file operations.
6pub struct ChunkStrategy<'a> {
7    /// The starting index for chunking operations.
8    pub(crate) start_chunk_index: usize,
9    /// Directory where chunks will be uploaded.
10    pub(crate) upload_dir: &'a str,
11    /// Function for generating chunk file names.
12    pub(crate) file_name_func: Box<dyn ChunkNaming<'a>>,
13    /// Unique identifier for the file being chunked.
14    pub(crate) file_id: &'a str,
15    /// Original name of the file being chunked.
16    pub(crate) file_name: &'a str,
17    /// Total number of chunks to create.
18    pub(crate) total_chunks: usize,
19}