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 country(self, country: impl Into<String>) -> Self
pub fn country(self, country: impl Into<String>) -> Self
Sets country.
Leading/trailing whitespace is trimmed. Empty values clear the filter.
Sourcepub fn try_country(self, country: impl Into<String>) -> Result<Self, GieError>
pub fn try_country(self, country: impl Into<String>) -> Result<Self, GieError>
Parses and sets country as non-empty text.
Sourcepub fn company(self, company: impl Into<String>) -> Self
pub fn company(self, company: impl Into<String>) -> Self
Sets company.
Leading/trailing whitespace is trimmed. Empty values clear the filter.
Sourcepub fn try_company(self, company: impl Into<String>) -> Result<Self, GieError>
pub fn try_company(self, company: impl Into<String>) -> Result<Self, GieError>
Parses and sets company as non-empty text.
Sourcepub fn facility(self, facility: impl Into<String>) -> Self
pub fn facility(self, facility: impl Into<String>) -> Self
Sets facility.
Leading/trailing whitespace is trimmed. Empty values clear the filter.
Sourcepub fn try_facility(self, facility: impl Into<String>) -> Result<Self, GieError>
pub fn try_facility(self, facility: impl Into<String>) -> Result<Self, GieError>
Parses and sets facility as non-empty text.
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