pub struct DocumentListRequest {
pub key: String,
/* private fields */
}Expand description
Document list request (GET /llm-application/open/document)
Fields§
§key: StringBearer API key
Implementations§
Source§impl DocumentListRequest
impl DocumentListRequest
pub fn new(key: String) -> Self
Sourcepub fn with_query(self, q: DocumentListQuery) -> Self
pub fn with_query(self, q: DocumentListQuery) -> Self
Apply query by rebuilding internal URL
Sourcepub async fn send_with_query(
self,
q: &DocumentListQuery,
) -> Result<DocumentListResponse>
pub async fn send_with_query( self, q: &DocumentListQuery, ) -> Result<DocumentListResponse>
Validate query, rebuild URL, then send
Sourcepub async fn send(&self) -> Result<DocumentListResponse>
pub async fn send(&self) -> Result<DocumentListResponse>
Send and parse typed response
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocumentListRequest
impl RefUnwindSafe for DocumentListRequest
impl Send for DocumentListRequest
impl Sync for DocumentListRequest
impl Unpin for DocumentListRequest
impl UnwindSafe for DocumentListRequest
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