pub struct Query {
pub audience: Option<String>,
pub area: Option<String>,
pub tag: Option<String>,
pub severity: Option<String>,
pub frequency: Option<String>,
pub lifecycle: Option<String>,
pub capability: Option<String>,
pub command: Option<String>,
pub featured: Option<bool>,
pub status: Option<String>,
pub q: Option<String>,
}Expand description
What a listing is narrowed by. Every field is optional and they compose as a conjunction; the values a caller may pass are the facets the catalogue reports, never a list written anywhere.
Fields§
§audience: Option<String>Only moments this audience recognises.
area: Option<String>Only moments in this operational area.
tag: Option<String>Only moments carrying this tag.
severity: Option<String>Only moments of this severity.
frequency: Option<String>Only moments of this frequency.
lifecycle: Option<String>Only moments at this stage of work.
capability: Option<String>Only moments naming this capability of the executable.
command: Option<String>Only moments naming this command.
featured: Option<bool>Only moments the homepage features.
status: Option<String>Only moments of this status. Absent means the public ones (stable); pass any
for everything the catalogue holds.
q: Option<String>Case-insensitive text, matched against the identity, the titles, the hook, the summary, the tags, the aliases, the signals, the examples and the body.
Trait Implementations§
Source§impl BenchmarkCases for Query
impl BenchmarkCases for Query
Source§fn benchmark_cases(ctx: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(ctx: &CaseContext<'_>) -> Vec<NamedCase<Self>>
Source§fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
Source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
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>,
impl Eq for Query
Source§impl JsonSchema for Query
impl JsonSchema for Query
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.