pub struct DocumentReembeddingRequest {
pub key: String,
/* private fields */
}Expand description
Re-embedding request (POST /llm-application/open/document/embedding/{id})
Fields§
§key: StringBearer API key
Implementations§
Source§impl DocumentReembeddingRequest
impl DocumentReembeddingRequest
Sourcepub fn new(key: String, document_id: impl AsRef<str>) -> Self
pub fn new(key: String, document_id: impl AsRef<str>) -> Self
Create a new request for the specified document id
Sourcepub fn with_callback_url(self, url: impl Into<String>) -> Self
pub fn with_callback_url(self, url: impl Into<String>) -> Self
Set callback URL
Sourcepub fn with_callback_header(self, hdr: BTreeMap<String, String>) -> Self
pub fn with_callback_header(self, hdr: BTreeMap<String, String>) -> Self
Set callback headers
Sourcepub async fn send(&self) -> Result<DocumentReembeddingResponse>
pub async fn send(&self) -> Result<DocumentReembeddingResponse>
Send POST request with JSON body and parse typed response
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocumentReembeddingRequest
impl RefUnwindSafe for DocumentReembeddingRequest
impl Send for DocumentReembeddingRequest
impl Sync for DocumentReembeddingRequest
impl Unpin for DocumentReembeddingRequest
impl UnwindSafe for DocumentReembeddingRequest
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