pub struct DocumentUploadOptions {
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 DocumentUploadOptions
impl Clone for DocumentUploadOptions
Source§fn clone(&self) -> DocumentUploadOptions
fn clone(&self) -> DocumentUploadOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentUploadOptions
impl Debug for DocumentUploadOptions
Source§impl Default for DocumentUploadOptions
impl Default for DocumentUploadOptions
Source§fn default() -> DocumentUploadOptions
fn default() -> DocumentUploadOptions
Returns the “default value” for a type. Read more
Source§impl Validate for DocumentUploadOptions
impl Validate for DocumentUploadOptions
Source§impl<'v_a> ValidateArgs<'v_a> for DocumentUploadOptions
impl<'v_a> ValidateArgs<'v_a> for DocumentUploadOptions
Auto Trait Implementations§
impl Freeze for DocumentUploadOptions
impl RefUnwindSafe for DocumentUploadOptions
impl Send for DocumentUploadOptions
impl Sync for DocumentUploadOptions
impl Unpin for DocumentUploadOptions
impl UnsafeUnpin for DocumentUploadOptions
impl UnwindSafe for DocumentUploadOptions
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