MatchKeyValue

Enum MatchKeyValue 

Source
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: IdentityStub

The IdentityStub of the specified Identity we are searching for.

§name: String

The resolved name of the author.

This is needed for the query normalization.

§

Participant

Filter by issue participant

Fields

§resolved_id: IdentityStub

The IdentityStub of the specified Identity we are searching for.

§name: String

The resolved name of the participant.

This is needed for the query normalization.

§

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

Source§

fn clone(&self) -> MatchKeyValue

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MatchKeyValue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl QueryKeyValue for MatchKeyValue

Source§

type Err = Error

The Error that is returned when trying to construct an QueryKeyValue from a string.
Source§

type UserState = Replica

A general state value that is inserted into each from_* call. It can be used to track user state between these calls. Read more
Source§

fn from_key_value( user_state: &Self::UserState, key: &str, value: String, ) -> Result<Self, Self::Err>

Construct this QueryKeyValue from a key name and a value. Read more
Source§

fn from_value( user_state: &Self::UserState, value: String, ) -> Result<Self, Self::Err>
where Self: Sized,

Construct this QueryKeyValue only from a value using the default key. Read more
Source§

fn to_key_and_value(&self) -> (&str, &str)
where Self: Sized,

Split this QueryKeyValue into it’s key and value parts. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,