search

Search handlers (HTML page + JSON API).

struct ApiSearchParams

source

pub struct ApiSearchParams

Query parameters for the JSON search API.

Field Type Description
q Option<String> The search text in gest’s query syntax; empty or missing gives an empty list.

Implements Deserialize<'de>.

struct SearchQuery

source

pub struct SearchQuery

Query parameters for the HTML search page.

Field Type Description
q Option<String> The search text in gest’s query syntax; empty or missing shows the page with no results.

Implements Deserialize<'de>.

struct ApiSearchResult

source

struct ApiSearchResult

JSON result returned from /api/search.

Field Type Description
id String The full id of the entity.
kind String The entity type, task, artifact or iteration, serialized as type.
short_id String The short id prefix that the UI displays.
title String The entity’s title, shown in the relationship picker.

Implements Serialize.

struct SearchTemplate

source

struct SearchTemplate

The search page, with the query box and its results grouped by entity type.

Field Type Description
artifacts Vec<artifact::Model> Artifacts that match the query; empty when the query is empty.
iterations Vec<iteration::Model> Iterations that match the query; empty when the query is empty.
query String The search text, shown back in the query box.
tasks Vec<task::Model> Tasks that match the query; empty when the query is empty.

Implements Template, Display, FastWritable.