#[non_exhaustive]pub struct KnowledgeSearchResult {
pub scope: String,
pub hits: Vec<SearchHit>,
pub used_tokens: usize,
pub omitted: usize,
pub degraded: Vec<String>,
pub method: String,
pub allowance: Option<Allowance>,
}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.scope: String§hits: Vec<SearchHit>§used_tokens: usize§omitted: usize§degraded: Vec<String>§method: String§allowance: Option<Allowance>Trait Implementations§
Source§impl Clone for KnowledgeSearchResult
impl Clone for KnowledgeSearchResult
Source§impl Debug for KnowledgeSearchResult
impl Debug for KnowledgeSearchResult
Source§impl<'de> Deserialize<'de> for KnowledgeSearchResult
impl<'de> Deserialize<'de> for KnowledgeSearchResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KnowledgeSearchResult
impl PartialEq for KnowledgeSearchResult
Source§impl Serialize for KnowledgeSearchResult
impl Serialize for KnowledgeSearchResult
impl StructuralPartialEq for KnowledgeSearchResult
Auto Trait Implementations§
impl Forget for KnowledgeSearchResult
impl Freeze for KnowledgeSearchResultwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SearchHit>: Freeze,
PhantomData<String>: Freeze,
impl Move for KnowledgeSearchResult
impl RefUnwindSafe for KnowledgeSearchResult
impl Send for KnowledgeSearchResult
impl Sync for KnowledgeSearchResult
impl Unpin for KnowledgeSearchResult
impl UnsafeUnpin for KnowledgeSearchResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SearchHit>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for KnowledgeSearchResultwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, String>: 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