#[non_exhaustive]pub struct KnowledgeIndexRequest {
pub level: u8,
pub collection: Option<String>,
pub prefix: Option<String>,
pub cursor: Option<usize>,
pub budget_tokens: Option<usize>,
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.level: u8§collection: Option<String>§prefix: Option<String>§cursor: Option<usize>§budget_tokens: Option<usize>§source_ids: Option<Vec<String>>§collections: Option<Vec<String>>Implementations§
Source§impl KnowledgeIndexRequest
impl KnowledgeIndexRequest
pub fn level(level: u8) -> Self
pub fn collection(self, collection: impl Into<String>) -> Self
pub fn prefix(self, prefix: impl Into<String>) -> Self
pub fn cursor(self, cursor: usize) -> Self
pub fn budget_tokens(self, tokens: usize) -> 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 KnowledgeIndexRequest
impl Clone for KnowledgeIndexRequest
Source§impl Debug for KnowledgeIndexRequest
impl Debug for KnowledgeIndexRequest
Auto Trait Implementations§
impl Forget for KnowledgeIndexRequest
impl Freeze for KnowledgeIndexRequest
impl Move for KnowledgeIndexRequest
impl RefUnwindSafe for KnowledgeIndexRequest
impl Send for KnowledgeIndexRequestwhere
RawVecInner: Send,
impl Sync for KnowledgeIndexRequestwhere
RawVecInner: Sync,
impl Unpin for KnowledgeIndexRequest
impl UnsafeUnpin for KnowledgeIndexRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for KnowledgeIndexRequestwhere
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