pub struct DocumentUploadRequest { /* private fields */ }Expand description
Implementations§
Source§impl DocumentUploadRequest
impl DocumentUploadRequest
Sourcepub fn new(knowledge_id: impl Into<String>) -> Self
pub fn new(knowledge_id: impl Into<String>) -> Self
Create a new request for a specific knowledge base id
Sourcepub fn add_file_path(self, path: impl Into<PathBuf>) -> Self
pub fn add_file_path(self, path: impl Into<PathBuf>) -> Self
Add a local file path to upload
Sourcepub fn with_options(self, opts: DocumentUploadOptions) -> Self
pub fn with_options(self, opts: DocumentUploadOptions) -> Self
Set optional parameters
Auto Trait Implementations§
impl Freeze for DocumentUploadRequest
impl RefUnwindSafe for DocumentUploadRequest
impl Send for DocumentUploadRequest
impl Sync for DocumentUploadRequest
impl Unpin for DocumentUploadRequest
impl UnsafeUnpin for DocumentUploadRequest
impl UnwindSafe for DocumentUploadRequest
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