pub struct DocumentDeleteRequest {
pub key: String,
/* private fields */
}Expand description
Document delete request (DELETE /llm-application/open/document/{id})
Fields§
§key: StringBearer API key
Implementations§
Source§impl DocumentDeleteRequest
impl DocumentDeleteRequest
Sourcepub fn new(key: String, id: impl AsRef<str>) -> Self
pub fn new(key: String, id: impl AsRef<str>) -> Self
Build a delete request with target document id
Sourcepub fn delete(&self) -> impl Future<Output = Result<Response>> + Send
pub fn delete(&self) -> impl Future<Output = Result<Response>> + Send
Perform HTTP DELETE with error handling compatible with {“error”:{…}}
Sourcepub async fn send(&self) -> Result<DocumentDeleteResponse>
pub async fn send(&self) -> Result<DocumentDeleteResponse>
Send delete request and parse typed response
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocumentDeleteRequest
impl RefUnwindSafe for DocumentDeleteRequest
impl Send for DocumentDeleteRequest
impl Sync for DocumentDeleteRequest
impl Unpin for DocumentDeleteRequest
impl UnwindSafe for DocumentDeleteRequest
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