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,
) -> ZaiResult<DocumentListResponse>
pub async fn send_with_query( self, q: &DocumentListQuery, ) -> ZaiResult<DocumentListResponse>
Validate query, rebuild URL, then send
Sourcepub async fn send(&self) -> ZaiResult<DocumentListResponse>
pub async fn send(&self) -> ZaiResult<DocumentListResponse>
Send and parse typed response
Trait Implementations§
Source§impl HttpClient for DocumentListRequest
impl HttpClient for DocumentListRequest
type Body = ()
type ApiUrl = String
type ApiKey = String
fn api_url(&self) -> &Self::ApiUrl
fn api_key(&self) -> &Self::ApiKey
fn body(&self) -> &Self::Body
Source§fn http_config(&self) -> Arc<HttpClientConfig>
fn http_config(&self) -> Arc<HttpClientConfig>
Get HTTP client configuration for this request Read more
Auto Trait Implementations§
impl Freeze for DocumentListRequest
impl RefUnwindSafe for DocumentListRequest
impl Send for DocumentListRequest
impl Sync for DocumentListRequest
impl Unpin for DocumentListRequest
impl UnsafeUnpin 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