use serde::{Deserialize, Serialize};
use std::path::PathBuf;
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct FastEmbedOptions {
pub model_name: Option<String>,
pub cache_dir: Option<PathBuf>,
pub max_batch_size: Option<usize>,
pub show_download_progress: Option<bool>,
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn default_options_fields_are_none() {
let opts = FastEmbedOptions::default();
assert!(opts.model_name.is_none());
assert!(opts.cache_dir.is_none());
assert!(opts.max_batch_size.is_none());
assert!(opts.show_download_progress.is_none());
}
}