pub struct Fields {
pub id: Option<String>,
pub title: Vec<String>,
pub text: Vec<String>,
pub group: Option<String>,
pub group_name: Option<String>,
pub date: Vec<String>,
pub filters: Vec<String>,
pub display: Vec<String>,
pub empty_values: Vec<String>,
}Expand description
Every field is a path into a record: a.b for nesting, items[].name
(or just items.name) for every element of an array.
Fields§
§id: Option<String>Unique record id. Without one, records are numbered <file>:<line>
and upserts cannot replace them.
title: Vec<String>Short headline; the first path that is present wins.
text: Vec<String>Searched text. Empty means every string in the record.
group: Option<String>Scope searches to one entity (customer, machine, repo, host, …).
group_name: Option<String>Human name of the group, used to resolve “the filler on line 3”.
date: Vec<String>Recency for ranking ties, recent, and --since/--until. First
present path wins.
filters: Vec<String>Exact-match filters (--where status=open), counted in describe.
display: Vec<String>Shown on every result card, in this order.
empty_values: Vec<String>Placeholder values treated as missing (“n/a”, “done”, “-”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fields
impl<'de> Deserialize<'de> for Fields
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
impl StructuralPartialEq for Fields
Auto Trait Implementations§
impl Freeze for Fields
impl RefUnwindSafe for Fields
impl Send for Fields
impl Sync for Fields
impl Unpin for Fields
impl UnsafeUnpin for Fields
impl UnwindSafe for Fields
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