pub struct DocumentListRequest { /* private fields */ }Expand description
Implementations§
Source§impl DocumentListRequest
impl DocumentListRequest
Sourcepub fn new(knowledge_id: impl Into<String>) -> Self
pub fn new(knowledge_id: impl Into<String>) -> Self
Create a document-list request for the required knowledge-base id.
Sourcepub fn with_query(self, q: DocumentListQuery) -> Self
pub fn with_query(self, q: DocumentListQuery) -> Self
Apply a query (replaces the current one).
Sourcepub async fn send_via(
&self,
client: &ZaiClient,
) -> ZaiResult<DocumentListResponse>
pub async fn send_via( &self, client: &ZaiClient, ) -> ZaiResult<DocumentListResponse>
Validate the configured query, send it, and parse the typed response.
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