pub struct QueryProvenance {
pub timestamp: DateTime<Utc>,
pub original_query: String,
pub expanded_query: Option<String>,
pub seed_entities: Vec<String>,
pub source_triples: Vec<Triple>,
pub community_sources: Vec<String>,
pub processing_time_ms: u64,
}Expand description
Query provenance for attribution
Fields§
§timestamp: DateTime<Utc>Query timestamp
original_query: StringOriginal query text
expanded_query: Option<String>Expanded query (if any)
seed_entities: Vec<String>Seed entities used
source_triples: Vec<Triple>Triples contributing to the answer
community_sources: Vec<String>Community summaries used (if hierarchical)
processing_time_ms: u64Processing time in milliseconds
Trait Implementations§
Source§impl Clone for QueryProvenance
impl Clone for QueryProvenance
Source§fn clone(&self) -> QueryProvenance
fn clone(&self) -> QueryProvenance
Returns a duplicate of the value. Read more
1.0.0 · 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 QueryProvenance
impl Debug for QueryProvenance
Source§impl<'de> Deserialize<'de> for QueryProvenance
impl<'de> Deserialize<'de> for QueryProvenance
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
Auto Trait Implementations§
impl Freeze for QueryProvenance
impl RefUnwindSafe for QueryProvenance
impl Send for QueryProvenance
impl Sync for QueryProvenance
impl Unpin for QueryProvenance
impl UnwindSafe for QueryProvenance
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