pub enum MatchKeyValue {
Status(Status),
Author {
resolved_id: IdentityStub,
name: String,
},
Participant {
resolved_id: IdentityStub,
name: String,
},
Label(Label),
Empty(EmptyValue),
Title(String),
Body(String),
Search(String),
}Expand description
The possible keys, that are usable in a query for issues.
§Following pairs are supported
§status
possible values: [open, closed]
This only matches issues where the status is the same.
§author
value: pattern.
This only matches issues where the value contains the author’s name or login name.
§participant
value: pattern.
This only matches issues where one of the participating user’s name or login names contains the value.
§label
value: string.
This only matches issues where one of the labels equals the value.
§title
value: pattern.
This only matches issues where the title contains the value.
§empty
possible values: [label]
Matches issues where the value is empty (e.g., no:label matches issues
without label)
§search
value: pattern.
Matches issue where either the body or the title contain the value. This is the implied default if a value does not have a key.
Variants§
Status(Status)
Filter by issue status
Author
Filter by issue author
Fields
resolved_id: IdentityStubThe IdentityStub of the specified
Identity we are searching
for.
Participant
Filter by issue participant
Fields
resolved_id: IdentityStubThe IdentityStub of the specified
Identity we are searching
for.
Label(Label)
Filter by issue label
Empty(EmptyValue)
Filter by empty field
Title(String)
Filter by issue title
Body(String)
Filter by string in issue body
Search(String)
Filter by string in issue body or title
Trait Implementations§
Source§impl Clone for MatchKeyValue
impl Clone for MatchKeyValue
Source§fn clone(&self) -> MatchKeyValue
fn clone(&self) -> MatchKeyValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MatchKeyValue
impl Debug for MatchKeyValue
Source§impl QueryKeyValue for MatchKeyValue
impl QueryKeyValue for MatchKeyValue
Source§type Err = Error
type Err = Error
QueryKeyValue
from a string.Source§type UserState = Replica
type UserState = Replica
from_* call.
It can be used to track user state between these calls. Read moreSource§fn from_key_value(
user_state: &Self::UserState,
key: &str,
value: String,
) -> Result<Self, Self::Err>
fn from_key_value( user_state: &Self::UserState, key: &str, value: String, ) -> Result<Self, Self::Err>
QueryKeyValue from a key name and a value. Read moreSource§fn from_value(
user_state: &Self::UserState,
value: String,
) -> Result<Self, Self::Err>where
Self: Sized,
fn from_value(
user_state: &Self::UserState,
value: String,
) -> Result<Self, Self::Err>where
Self: Sized,
QueryKeyValue only from a value using the default
key. Read more