pub struct QueryBuilder<'a>(/* private fields */);Expand description
A convenient builder API for Query.
Implementations§
Source§impl<'a> QueryBuilder<'a>
impl<'a> QueryBuilder<'a>
Sourcepub fn timeout(self, timeout: u32) -> Self
pub fn timeout(self, timeout: u32) -> Self
Set Query::timeout_s.
Sourcepub fn max_size(self, max_size: u32) -> Self
pub fn max_size(self, max_size: u32) -> Self
Set Query::max_size.
Sourcepub fn search_bbox(self, bbox: impl Into<Bbox>) -> Self
pub fn search_bbox(self, bbox: impl Into<Bbox>) -> Self
Set Query::search_bbox.
Sourcepub fn as_of_date(self, date: impl Into<DateTime<Utc>>) -> Self
pub fn as_of_date(self, date: impl Into<DateTime<Utc>>) -> Self
Set Query::as_of_date.
Sourcepub fn diff_since(self, start: impl Into<DateTime<Utc>>) -> Self
pub fn diff_since(self, start: impl Into<DateTime<Utc>>) -> Self
Set Query::diff with no end date.
Sourcepub fn diff_range(
self,
start: impl Into<DateTime<Utc>>,
end: impl Into<DateTime<Utc>>,
) -> Self
pub fn diff_range( self, start: impl Into<DateTime<Utc>>, end: impl Into<DateTime<Utc>>, ) -> Self
Set Query::diff with an end date.
Sourcepub fn verbosity(self, verbosity: QueryVerbosity) -> Self
pub fn verbosity(self, verbosity: QueryVerbosity) -> Self
Set Query::verbosity.
Trait Implementations§
Source§impl<'a> AsRef<Query<'a>> for QueryBuilder<'a>
impl<'a> AsRef<Query<'a>> for QueryBuilder<'a>
Source§impl<'a> Into<Query<'a>> for QueryBuilder<'a>
impl<'a> Into<Query<'a>> for QueryBuilder<'a>
Source§impl<'a> Into<QueryBuilder<'a>> for FilterSetBuilder<'a>
impl<'a> Into<QueryBuilder<'a>> for FilterSetBuilder<'a>
Source§fn into(self) -> QueryBuilder<'a>
fn into(self) -> QueryBuilder<'a>
Converts this type into the (usually inferred) input type.
Source§impl<'a> Into<QueryBuilder<'a>> for UnionSetBuilder<'a>
impl<'a> Into<QueryBuilder<'a>> for UnionSetBuilder<'a>
Source§fn into(self) -> QueryBuilder<'a>
fn into(self) -> QueryBuilder<'a>
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl<'a> Freeze for QueryBuilder<'a>
impl<'a> RefUnwindSafe for QueryBuilder<'a>
impl<'a> Send for QueryBuilder<'a>
impl<'a> Sync for QueryBuilder<'a>
impl<'a> Unpin for QueryBuilder<'a>
impl<'a> UnsafeUnpin for QueryBuilder<'a>
impl<'a> UnwindSafe for QueryBuilder<'a>
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