pub enum SearchSource {
Fact {
fact_id: String,
namespace: String,
},
Chunk {
chunk_id: String,
document_id: String,
document_title: String,
chunk_index: usize,
},
Message {
message_id: i64,
session_id: String,
role: String,
},
Episode {
episode_id: String,
document_id: String,
effect_type: String,
outcome: String,
},
Projection {
projection_kind: String,
projection_id: String,
scope_key: ScopeKey,
valid_from: Option<String>,
valid_to: Option<String>,
recorded_at: String,
source_envelope_id: String,
source_authority: String,
},
}Expand description
Source information for a search result.
Variants§
Fact
Result came from the facts table.
Chunk
Result came from a document chunk.
Fields
Message
Result came from a conversation message.
Fields
Episode
Result came from an episode (causal record). SearchSource::Episode variant.
Fields
Projection
Result came from an imported projection row.
Fields
Source authority provenance.
Implementations§
Source§impl SearchSource
impl SearchSource
Trait Implementations§
Source§impl Clone for SearchSource
impl Clone for SearchSource
Source§fn clone(&self) -> SearchSource
fn clone(&self) -> SearchSource
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 SearchSource
impl Debug for SearchSource
Source§impl<'de> Deserialize<'de> for SearchSource
impl<'de> Deserialize<'de> for SearchSource
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 SearchSource
impl RefUnwindSafe for SearchSource
impl Send for SearchSource
impl Sync for SearchSource
impl Unpin for SearchSource
impl UnsafeUnpin for SearchSource
impl UnwindSafe for SearchSource
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