pub struct PendingFilter {
pub query_id: bool,
pub max_tokens: bool,
pub system: bool,
pub grounded: bool,
pub underspecified: bool,
pub prompt: PromptProjection,
}Expand description
Per-field filter controlling which LlmQuery attributes are projected
into a Snapshot’s pending array.
Adding a new field to LlmQuery only requires adding one matching
bool here — the shape stays stable so API surface does not grow
enum variants for every new attribute.
Fields§
§query_id: bool§max_tokens: bool§system: bool§grounded: bool§underspecified: bool§prompt: PromptProjectionImplementations§
Source§impl PendingFilter
impl PendingFilter
Sourcepub fn preset_meta() -> Self
pub fn preset_meta() -> Self
Preset: query identification only (query_id + max_tokens).
Sourcepub fn preset_preview() -> Self
pub fn preset_preview() -> Self
Preset: meta + first N chars of the prompt. Uses the hard default
for N (DEFAULT_PROMPT_PREVIEW_CHARS).
Sourcepub fn preset_preview_with(chars: usize) -> Self
pub fn preset_preview_with(chars: usize) -> Self
Preset: meta + first chars chars of the prompt. Lets callers
flow a config-resolved length (e.g. env var) into the preset.
Sourcepub fn preset_full() -> Self
pub fn preset_full() -> Self
Preset: every field including the full prompt (debug use).
Sourcepub fn from_preset(name: &str) -> Option<Self>
pub fn from_preset(name: &str) -> Option<Self>
Resolve a preset by name. Unknown names return None so that
callers can surface a typed error rather than silently falling
back to a default projection.
Sourcepub fn from_preset_with(name: &str, preview_chars: usize) -> Option<Self>
pub fn from_preset_with(name: &str, preview_chars: usize) -> Option<Self>
Same as Self::from_preset but lets "preview" pick up a
caller-supplied char count (config / env override).
Trait Implementations§
Source§impl Clone for PendingFilter
impl Clone for PendingFilter
Source§fn clone(&self) -> PendingFilter
fn clone(&self) -> PendingFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PendingFilter
impl Debug for PendingFilter
Source§impl Default for PendingFilter
impl Default for PendingFilter
Source§fn default() -> PendingFilter
fn default() -> PendingFilter
Source§impl<'de> Deserialize<'de> for PendingFilter
impl<'de> Deserialize<'de> for PendingFilter
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 PendingFilter
impl RefUnwindSafe for PendingFilter
impl Send for PendingFilter
impl Sync for PendingFilter
impl Unpin for PendingFilter
impl UnsafeUnpin for PendingFilter
impl UnwindSafe for PendingFilter
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,
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 moreSource§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.