pub struct GieQuery { /* private fields */ }Expand description
Shared query builder used by both AGSI and ALSI clients. Query builder shared by AGSI and ALSI endpoints.
Implementations§
Source§impl GieQuery
impl GieQuery
Sourcepub fn dataset_type(self, dataset_type: DatasetType) -> Self
pub fn dataset_type(self, dataset_type: DatasetType) -> Self
Sets dataset type.
Sourcepub fn try_dataset_type(
self,
dataset_type: impl AsRef<str>,
) -> Result<Self, GieError>
pub fn try_dataset_type( self, dataset_type: impl AsRef<str>, ) -> Result<Self, GieError>
Parses and sets dataset type from string (eu, ne, ai).
Sourcepub fn without_dataset_type(self) -> Self
pub fn without_dataset_type(self) -> Self
Clears dataset type.
Sourcepub fn try_date(self, date: impl AsRef<str>) -> Result<Self, GieError>
pub fn try_date(self, date: impl AsRef<str>) -> Result<Self, GieError>
Parses and sets the single-day date filter from YYYY-MM-DD.
Sourcepub fn range(self, from: GieDate, to: GieDate) -> Result<Self, GieError>
pub fn range(self, from: GieDate, to: GieDate) -> Result<Self, GieError>
Sets from and to range.
Sourcepub fn try_range(
self,
from: impl AsRef<str>,
to: impl AsRef<str>,
) -> Result<Self, GieError>
pub fn try_range( self, from: impl AsRef<str>, to: impl AsRef<str>, ) -> Result<Self, GieError>
Parses and sets from and to from YYYY-MM-DD.
Sourcepub fn page(self, page: NonZeroU32) -> Self
pub fn page(self, page: NonZeroU32) -> Self
Sets the page number.
Sourcepub fn size(self, size: NonZeroU32) -> Self
pub fn size(self, size: NonZeroU32) -> Self
Sets requested page size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GieQuery
impl RefUnwindSafe for GieQuery
impl Send for GieQuery
impl Sync for GieQuery
impl Unpin for GieQuery
impl UnsafeUnpin for GieQuery
impl UnwindSafe for GieQuery
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