pub struct LocalitiesQuery {Show 13 fields
pub country: Option<String>,
pub txt: Option<String>,
pub description: Option<String>,
pub elements_inc: Option<String>,
pub elements_exc: Option<String>,
pub id_in: Option<Vec<i32>>,
pub updated_at: Option<String>,
pub fields: Option<String>,
pub omit: Option<String>,
pub expand: Option<Vec<String>>,
pub cursor: Option<String>,
pub page_size: Option<i32>,
pub page: Option<i32>,
}Expand description
Builder for locality query parameters.
Fields§
§country: Option<String>Country name filter.
txt: Option<String>Locality name contains.
description: Option<String>Description contains.
elements_inc: Option<String>Include elements (comma-separated).
elements_exc: Option<String>Exclude elements (comma-separated).
id_in: Option<Vec<i32>>Filter by IDs.
updated_at: Option<String>Updated after datetime.
fields: Option<String>Fields to include.
omit: Option<String>Fields to omit.
expand: Option<Vec<String>>Fields to expand.
cursor: Option<String>Cursor for pagination.
page_size: Option<i32>Page size (number of results per page).
page: Option<i32>Page number for pagination.
Implementations§
Source§impl LocalitiesQuery
impl LocalitiesQuery
Sourcepub fn name_contains(self, txt: impl Into<String>) -> Self
pub fn name_contains(self, txt: impl Into<String>) -> Self
Filter by locality name.
Sourcepub fn description_contains(self, desc: impl Into<String>) -> Self
pub fn description_contains(self, desc: impl Into<String>) -> Self
Filter by description.
Sourcepub fn with_elements(self, elements: impl Into<String>) -> Self
pub fn with_elements(self, elements: impl Into<String>) -> Self
Filter by included elements.
Sourcepub fn without_elements(self, elements: impl Into<String>) -> Self
pub fn without_elements(self, elements: impl Into<String>) -> Self
Filter by excluded elements.
Sourcepub fn select_fields(self, fields: impl Into<String>) -> Self
pub fn select_fields(self, fields: impl Into<String>) -> Self
Select specific fields.
Sourcepub fn omit_fields(self, fields: impl Into<String>) -> Self
pub fn omit_fields(self, fields: impl Into<String>) -> Self
Omit specific fields.
Sourcepub fn expand_fields(self, fields: Vec<String>) -> Self
pub fn expand_fields(self, fields: Vec<String>) -> Self
Expand related fields.
Trait Implementations§
Source§impl Clone for LocalitiesQuery
impl Clone for LocalitiesQuery
Source§fn clone(&self) -> LocalitiesQuery
fn clone(&self) -> LocalitiesQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalitiesQuery
impl Debug for LocalitiesQuery
Source§impl Default for LocalitiesQuery
impl Default for LocalitiesQuery
Source§fn default() -> LocalitiesQuery
fn default() -> LocalitiesQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalitiesQuery
impl RefUnwindSafe for LocalitiesQuery
impl Send for LocalitiesQuery
impl Sync for LocalitiesQuery
impl Unpin for LocalitiesQuery
impl UnwindSafe for LocalitiesQuery
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