pub struct EntityFilter {
pub ids: Vec<Uuid>,
pub kinds: Vec<String>,
pub entity_types: Vec<String>,
pub name_prefix: Option<String>,
pub name_exact: Option<String>,
pub tags_any: Vec<String>,
pub namespaces: Vec<String>,
}Expand description
Entity filter for query operations.
Fields§
§ids: Vec<Uuid>§kinds: Vec<String>§entity_types: Vec<String>Filter by exact entity_type value. Multiple values are ORed.
name_prefix: Option<String>§name_exact: Option<String>Deterministic, case-sensitive equality on entities.name (binary
comparison — SQLite’s default collation for = on a TEXT column
without an explicit COLLATE NOCASE). Distinct from name_prefix:
that stage’s LIKE is inherently prefix-shaped and, with SQLite’s
default NOCASE-free LIKE on ASCII, still ranks a page by
created_at DESC — a match that is exact but not the newest can be
paged out. name_exact skips paging risk entirely by filtering to
only rows that equal name at the SQL layer.
namespaces: Vec<String>When non-empty, restricts results to any of these namespaces using
namespace IN (...). Takes precedence over the namespace string
parameter passed to query_entities / count_entities. When empty the
caller-supplied namespace parameter is used (single-namespace path,
backward-compatible default).
Trait Implementations§
Source§impl Clone for EntityFilter
impl Clone for EntityFilter
Source§fn clone(&self) -> EntityFilter
fn clone(&self) -> EntityFilter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more