pub struct SearchHit {
pub kind: EntityKind,
pub id: Id,
pub name: String,
pub detail: String,
/* private fields */
}Expand description
One answer returned by Catalog::search, ready to be shown and followed.
Fields§
§kind: EntityKindTable the hit lives in, which tells the caller where to navigate.
id: IdIdentifier within that table.
name: StringDisplay form, unnormalized, as it should appear on screen.
detail: StringContext shown next to the name (album artist, track’s album…).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchHit
impl RefUnwindSafe for SearchHit
impl Send for SearchHit
impl Sync for SearchHit
impl Unpin for SearchHit
impl UnwindSafe for SearchHit
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