pub struct SearchPart<'a> {
pub part_id: &'a str,
pub part_kind: Option<&'a str>,
pub parent_part: Option<&'a str>,
pub anchor_id: Option<&'a str>,
pub title: Option<&'a str>,
pub body: Option<&'a str>,
pub tags: Option<&'a str>,
}Expand description
One indexable unit of an object.
A whole object (a file, an action, a profile) has a single part with
part_id = "". A deep-indexed document emits one part per sub-unit, where
part_id is the app’s deep-link key (e.g. a notillo page id).
Fields§
§part_id: &'a strDeep-link key; "" for whole-object rows.
part_kind: Option<&'a str>Rule kind that produced this part (the RTDB collection name).
parent_part: Option<&'a str>Parent part id, for tree display of results.
anchor_id: Option<&'a str>Finest-grained anchor inside the part (e.g. a notillo block id).
title: Option<&'a str>§body: Option<&'a str>Space-separated tag list.
Trait Implementations§
Source§impl<'a> Debug for SearchPart<'a>
impl<'a> Debug for SearchPart<'a>
Source§impl<'a> Default for SearchPart<'a>
impl<'a> Default for SearchPart<'a>
Source§fn default() -> SearchPart<'a>
fn default() -> SearchPart<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for SearchPart<'a>
impl<'a> RefUnwindSafe for SearchPart<'a>
impl<'a> Send for SearchPart<'a>
impl<'a> Sync for SearchPart<'a>
impl<'a> Unpin for SearchPart<'a>
impl<'a> UnsafeUnpin for SearchPart<'a>
impl<'a> UnwindSafe for SearchPart<'a>
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