Enum ddc_hi::Query[][src]

pub enum Query {
    Any,
    Backend(Backend),
    Id(String),
    ManufacturerId(String),
    ModelName(String),
    SerialNumber(String),
    Or(Vec<Query>),
    And(Vec<Query>),
}
Expand description

A query to filter out matching displays.

Most comparisons must match the full string.

Variants

Any

Matches any display

Backend(Backend)

Matches a display on the given backend

Tuple Fields of Backend

0: Backend
Id(String)

Matches a display with the specified ID

Tuple Fields of Id

0: String
ManufacturerId(String)

Matches a display with the specified manufacturer

Tuple Fields of ManufacturerId

0: String
ModelName(String)

Matches a display with the specified model name

Tuple Fields of ModelName

0: String
SerialNumber(String)

Matches a display with the specified serial number

Tuple Fields of SerialNumber

0: String
Or(Vec<Query>)

At least one of the queries must match

Tuple Fields of Or

0: Vec<Query>
And(Vec<Query>)

All of the queries must match

Tuple Fields of And

0: Vec<Query>

Implementations

Queries whether the provided display info is a match.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.