#[non_exhaustive]pub struct KnowledgeSearchRequest {
pub query: String,
pub limit: Option<usize>,
pub budget_tokens: Option<usize>,
pub as_of: Option<String>,
pub valid_at: Option<String>,
pub source_ids: Option<Vec<String>>,
pub collections: Option<Vec<String>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.query: String§limit: Option<usize>§budget_tokens: Option<usize>§as_of: Option<String>§valid_at: Option<String>§source_ids: Option<Vec<String>>§collections: Option<Vec<String>>Implementations§
Source§impl KnowledgeSearchRequest
impl KnowledgeSearchRequest
pub fn new(query: impl Into<String>) -> Self
pub fn limit(self, limit: usize) -> Self
pub fn budget_tokens(self, tokens: usize) -> Self
pub fn as_of(self, as_of: impl Into<String>) -> Self
pub fn valid_at(self, valid_at: impl Into<String>) -> Self
pub fn source_ids(self, source_ids: Vec<String>) -> Self
pub fn collections(self, collections: Vec<String>) -> Self
Trait Implementations§
Source§impl Clone for KnowledgeSearchRequest
impl Clone for KnowledgeSearchRequest
Auto Trait Implementations§
impl Forget for KnowledgeSearchRequest
impl Freeze for KnowledgeSearchRequest
impl Move for KnowledgeSearchRequest
impl RefUnwindSafe for KnowledgeSearchRequest
impl Send for KnowledgeSearchRequestwhere
RawVecInner: Send,
impl Sync for KnowledgeSearchRequestwhere
RawVecInner: Sync,
impl Unpin for KnowledgeSearchRequest
impl UnsafeUnpin for KnowledgeSearchRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for KnowledgeSearchRequestwhere
RawVecInner: UnwindSafe,
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