pub struct ReadingRow {
pub id: String,
pub title: String,
pub subtitle: Option<String>,
pub group: Option<String>,
pub icon: Option<String>,
pub facts: Vec<String>,
pub fields: Vec<String>,
pub action: Option<String>,
pub arguments: BTreeMap<String, Value>,
pub app: Option<String>,
}Expand description
One item a reading lists among its values — a container, a drive and its partitions, a printer and its jobs, a process, a journal record — as a person finds it in search: what it is called, what says what it is, and how choosing it opens it.
A reading publishes these for every list its resource keeps (Service::search_rows); the
system’s search lists each as a row of its own, so a device reading’s items are found the
way an app’s are, without the app that shows them having to run.
Fields§
§id: StringThe item’s stable id in its reading: a container’s name, a drive’s name in /dev, a
journal record’s moment.
title: StringWhat the row says.
subtitle: Option<String>The line under it (a publisher, a state, a unit).
group: Option<String>The group it is listed under (“Containers”, “Printers”).
icon: Option<String>A named icon (a lucide kebab name).
facts: Vec<String>Where it is (a container’s image, a drive’s mount point): further lines, not matched.
fields: Vec<String>More text it is found by: a publisher, a command, a record’s unit.
action: Option<String>The action of its resource that opens it on the item, when the reading offers one: a
program’s launch, a partition’s mount.
arguments: BTreeMap<String, Value>The values that action takes to name the item, by parameter name.
app: Option<String>The app whose window shows the item, opened when the reading offers no action on it.
Implementations§
Source§impl ReadingRow
impl ReadingRow
Trait Implementations§
Source§impl Clone for ReadingRow
impl Clone for ReadingRow
Source§impl Debug for ReadingRow
impl Debug for ReadingRow
Source§impl Default for ReadingRow
impl Default for ReadingRow
impl Eq for ReadingRow
Source§impl PartialEq for ReadingRow
impl PartialEq for ReadingRow
impl StructuralPartialEq for ReadingRow
Auto Trait Implementations§
impl Forget for ReadingRow
impl Freeze for ReadingRow
impl Move for ReadingRow
impl RefUnwindSafe for ReadingRow
impl Send for ReadingRow
impl Sync for ReadingRow
impl Unpin for ReadingRow
impl UnsafeUnpin for ReadingRow
impl UnwindSafe for ReadingRow
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 more