#[non_exhaustive]pub struct KnowledgeFetchRequest {
pub id: String,
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.id: String§budget_tokens: Option<usize>§as_of: Option<String>§valid_at: Option<String>§source_ids: Option<Vec<String>>§collections: Option<Vec<String>>Implementations§
Source§impl KnowledgeFetchRequest
impl KnowledgeFetchRequest
pub fn new(id: impl Into<String>) -> 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 KnowledgeFetchRequest
impl Clone for KnowledgeFetchRequest
Auto Trait Implementations§
impl Forget for KnowledgeFetchRequest
impl Freeze for KnowledgeFetchRequest
impl Move for KnowledgeFetchRequest
impl RefUnwindSafe for KnowledgeFetchRequest
impl Send for KnowledgeFetchRequestwhere
RawVecInner: Send,
impl Sync for KnowledgeFetchRequestwhere
RawVecInner: Sync,
impl Unpin for KnowledgeFetchRequest
impl UnsafeUnpin for KnowledgeFetchRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for KnowledgeFetchRequestwhere
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