pub struct CommandFilter {
pub origin: Option<String>,
pub effect: Option<String>,
pub search: Option<String>,
}Expand description
Which commands to answer with. Every filter is the graph’s own vocabulary; none is a search over rendered text.
Fields§
§origin: Option<String>Only the commands of one program: executable, tool or workflow.
effect: Option<String>Only the commands whose effect is at most this one: read_only,
local_mutation, repository_mutation, network_mutation, destructive.
search: Option<String>Only the commands matching this text in their invocation, summary, tags or identity.
Trait Implementations§
Source§impl BenchmarkCases for CommandFilter
impl BenchmarkCases for CommandFilter
Source§fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
The cases, in a stable order. An empty list means “nothing to benchmark in this
repository”, which the coverage check reports as missing.
Source§fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
The cases as JSON, the shape every runner serialises from.
Source§impl Clone for CommandFilter
impl Clone for CommandFilter
Source§fn clone(&self) -> CommandFilter
fn clone(&self) -> CommandFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandFilter
impl Debug for CommandFilter
Source§impl Default for CommandFilter
impl Default for CommandFilter
Source§fn default() -> CommandFilter
fn default() -> CommandFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandFilter
impl<'de> Deserialize<'de> for CommandFilter
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for CommandFilter
impl JsonSchema for CommandFilter
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for CommandFilter
impl RefUnwindSafe for CommandFilter
impl Send for CommandFilter
impl Sync for CommandFilter
impl Unpin for CommandFilter
impl UnsafeUnpin for CommandFilter
impl UnwindSafe for CommandFilter
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