Struct mediathekviewweb::MediathekQueryBuilder
source · pub struct MediathekQueryBuilder<'client> { /* private fields */ }
Expand description
Request builder for the /api/query
endpoint.
Implementations§
source§impl MediathekQueryBuilder<'_>
impl MediathekQueryBuilder<'_>
sourcepub fn query(
self,
fields: impl Into<Vec<QueryField>>,
query: impl Into<String>
) -> Self
pub fn query( self, fields: impl Into<Vec<QueryField>>, query: impl Into<String> ) -> Self
Add an additional search query.
Multiple queries are combined using a logical AND
.
fields
describes the fields in which should be searched for query
.
sourcepub fn duration_min(self, duration_min: impl Into<Duration>) -> Self
pub fn duration_min(self, duration_min: impl Into<Duration>) -> Self
Filter for a minimum duration.
sourcepub fn duration_max(self, duration_max: impl Into<Duration>) -> Self
pub fn duration_max(self, duration_max: impl Into<Duration>) -> Self
Filter for a maximum duration.
sourcepub fn include_future(self, include_future: bool) -> Self
pub fn include_future(self, include_future: bool) -> Self
Include media with a broadcasting date in the future.
sourcepub fn sort_order(self, sort_order: SortOrder) -> Self
pub fn sort_order(self, sort_order: SortOrder) -> Self
Set the sort order.
source§impl MediathekQueryBuilder<'_>
impl MediathekQueryBuilder<'_>
sourcepub async fn send(self) -> Result<QueryResult>
pub async fn send(self) -> Result<QueryResult>
Build and send the request to the server.
This call can be usually omitted since this type implements
IntoFuture
.
Trait Implementations§
source§impl<'client> Debug for MediathekQueryBuilder<'client>
impl<'client> Debug for MediathekQueryBuilder<'client>
source§impl<'client> IntoFuture for MediathekQueryBuilder<'client>
impl<'client> IntoFuture for MediathekQueryBuilder<'client>
§type Output = Result<QueryResult, Error>
type Output = Result<QueryResult, Error>
The output that the future will produce on completion.
§type IntoFuture = Pin<Box<dyn Future<Output = <MediathekQueryBuilder<'client> as IntoFuture>::Output> + Send + 'client>>
type IntoFuture = Pin<Box<dyn Future<Output = <MediathekQueryBuilder<'client> as IntoFuture>::Output> + Send + 'client>>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'client> Freeze for MediathekQueryBuilder<'client>
impl<'client> !RefUnwindSafe for MediathekQueryBuilder<'client>
impl<'client> Send for MediathekQueryBuilder<'client>
impl<'client> Sync for MediathekQueryBuilder<'client>
impl<'client> Unpin for MediathekQueryBuilder<'client>
impl<'client> !UnwindSafe for MediathekQueryBuilder<'client>
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