pub struct UploadFileOptions {
pub knowledge_type: Option<DocumentSliceType>,
pub custom_separator: Option<Vec<String>>,
pub sentence_size: Option<u32>,
pub parse_image: Option<bool>,
pub callback_url: Option<String>,
pub callback_header: Option<BTreeMap<String, String>>,
pub word_num_limit: Option<String>,
pub req_id: Option<String>,
}Expand description
Optional parameters for file upload
Fields§
§knowledge_type: Option<DocumentSliceType>Document type; if omitted, the server parses dynamically
custom_separator: Option<Vec<String>>Custom slicing rules; used when knowledge_type = 5
sentence_size: Option<u32>Custom slice size; used when knowledge_type = 5; valid range: 20..=2000
parse_image: Option<bool>Whether to parse images
callback_url: Option<String>Callback URL
callback_header: Option<BTreeMap<String, String>>Callback headers
word_num_limit: Option<String>Document word number limit (must be numeric string per API)
req_id: Option<String>Request id
Trait Implementations§
Source§impl Clone for UploadFileOptions
impl Clone for UploadFileOptions
Source§fn clone(&self) -> UploadFileOptions
fn clone(&self) -> UploadFileOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UploadFileOptions
impl Debug for UploadFileOptions
Source§impl Default for UploadFileOptions
impl Default for UploadFileOptions
Source§fn default() -> UploadFileOptions
fn default() -> UploadFileOptions
Returns the “default value” for a type. Read more
Source§impl Validate for UploadFileOptions
impl Validate for UploadFileOptions
Source§impl<'v_a> ValidateArgs<'v_a> for UploadFileOptions
impl<'v_a> ValidateArgs<'v_a> for UploadFileOptions
Auto Trait Implementations§
impl Freeze for UploadFileOptions
impl RefUnwindSafe for UploadFileOptions
impl Send for UploadFileOptions
impl Sync for UploadFileOptions
impl Unpin for UploadFileOptions
impl UnwindSafe for UploadFileOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more