pub struct SearchContext {Show 14 fields
pub evaluation_time: DateTime<Utc>,
pub receipt_mode: ReceiptMode,
pub exactness_profile: ExactnessProfile,
pub request_id: Option<String>,
pub trace_id: Option<String>,
pub attempt_family_id: Option<String>,
pub attempt_id: Option<String>,
pub replay_of: Option<String>,
pub query_text_digest: Option<String>,
pub query_input_digest: Option<String>,
pub filter_digest: Option<String>,
pub redaction_state: Option<String>,
pub budget_id: Option<String>,
pub deadline_at: Option<DateTime<Utc>>,
}Expand description
Explicit search execution context for deterministic replay and receipt generation.
Fields§
§evaluation_time: DateTime<Utc>Timestamp used for time-sensitive scoring such as recency.
receipt_mode: ReceiptModeReceipt metadata mode.
exactness_profile: ExactnessProfileExactness policy for vector candidate generation.
request_id: Option<String>Optional caller-provided request/receipt correlation ID.
trace_id: Option<String>Optional distributed trace identifier supplied by the caller.
attempt_family_id: Option<String>Optional family ID tying retries/attempts for the same logical request.
attempt_id: Option<String>Optional retry/attempt identifier supplied by the caller.
replay_of: Option<String>Receipt ID this search is replaying, when applicable.
query_text_digest: Option<String>Digest of raw query text when the caller provides one.
query_input_digest: Option<String>Digest of raw or structured query input when supplied by the caller.
filter_digest: Option<String>Digest of structured filters when the caller provides one.
redaction_state: Option<String>Redaction state label for explain/replay surfaces.
budget_id: Option<String>Optional budget identity associated with the search.
deadline_at: Option<DateTime<Utc>>Optional caller deadline associated with the search.
Implementations§
Source§impl SearchContext
impl SearchContext
Sourcepub fn default_now() -> Self
pub fn default_now() -> Self
Build a context using the current wall clock at the API boundary.
Sourcepub fn at(evaluation_time: DateTime<Utc>) -> Self
pub fn at(evaluation_time: DateTime<Utc>) -> Self
Build a replay context with an explicit evaluation timestamp.
Sourcepub fn receipts_enabled(&self) -> bool
pub fn receipts_enabled(&self) -> bool
Whether a receipt should be produced for this context.
Trait Implementations§
Source§impl Clone for SearchContext
impl Clone for SearchContext
Source§fn clone(&self) -> SearchContext
fn clone(&self) -> SearchContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SearchContext
impl Debug for SearchContext
Source§impl Default for SearchContext
impl Default for SearchContext
Source§impl<'de> Deserialize<'de> for SearchContext
impl<'de> Deserialize<'de> for SearchContext
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>,
Auto Trait Implementations§
impl Freeze for SearchContext
impl RefUnwindSafe for SearchContext
impl Send for SearchContext
impl Sync for SearchContext
impl Unpin for SearchContext
impl UnsafeUnpin for SearchContext
impl UnwindSafe for SearchContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more