VideoQuery#

pub enum VideoQuery#

A query for searching videos, composable with and and or.

Variants#

SearchText(String)#

Fuzzy full-text search against title and description.

Label(String)#

Filter by label.

Property(String, String)#

Filter by property key and value.

And(Vec<VideoQuery>)#

All sub-queries must match.

Or(Vec<VideoQuery>)#

At least one sub-query must match.

Implementations#

impl VideoQuery
pub fn search_text(text: impl Into<String>) -> Self#
pub fn label(label: impl Into<String>) -> Self#
pub fn property(key: impl Into<String>, value: impl Into<String>) -> Self#
pub fn and(queries: impl IntoIterator<Item = VideoQuery>) -> Self#
pub fn or(queries: impl IntoIterator<Item = VideoQuery>) -> Self#

Trait implementations#

Derived: Debug, Clone

Auto traits: Send, Sync, Unpin, UnwindSafe, RefUnwindSafe