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