async_openai/types/
input_source.rs

1#[derive(Debug, Clone, PartialEq)]
2pub enum InputSource {
3    Path {
4        path: std::path::PathBuf,
5    },
6    Bytes {
7        filename: String,
8        bytes: bytes::Bytes,
9    },
10    VecU8 {
11        filename: String,
12        vec: Vec<u8>,
13    },
14}
15
16impl Default for InputSource {
17    fn default() -> Self {
18        InputSource::Path {
19            path: std::path::PathBuf::new(),
20        }
21    }
22}