pub struct RetrieveProvenance {
pub query: String,
pub scope_ids: ScopeIds,
pub total_candidates: u32,
pub returned_candidates: u32,
pub truncated_due_to_token_budget: bool,
pub provider_used: String,
}Expand description
Domain types re-exported from kindling_types so the daemon client is a
self-contained SDK: depend on kindling-client alone and reach every type
the API sends or returns as kindling_client::<Type>. kindling-types
stays an internal transitive dependency you never have to name.
Provenance for a retrieval result.
Fields§
§query: String§scope_ids: ScopeIds§total_candidates: u32§returned_candidates: u32§truncated_due_to_token_budget: bool§provider_used: StringTrait Implementations§
Source§impl Clone for RetrieveProvenance
impl Clone for RetrieveProvenance
Source§fn clone(&self) -> RetrieveProvenance
fn clone(&self) -> RetrieveProvenance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetrieveProvenance
impl Debug for RetrieveProvenance
Source§impl<'de> Deserialize<'de> for RetrieveProvenance
impl<'de> Deserialize<'de> for RetrieveProvenance
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RetrieveProvenance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RetrieveProvenance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RetrieveProvenance
impl PartialEq for RetrieveProvenance
Source§fn eq(&self, other: &RetrieveProvenance) -> bool
fn eq(&self, other: &RetrieveProvenance) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RetrieveProvenance
impl Serialize for RetrieveProvenance
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RetrieveProvenance
Auto Trait Implementations§
impl Freeze for RetrieveProvenance
impl RefUnwindSafe for RetrieveProvenance
impl Send for RetrieveProvenance
impl Sync for RetrieveProvenance
impl Unpin for RetrieveProvenance
impl UnsafeUnpin for RetrieveProvenance
impl UnwindSafe for RetrieveProvenance
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