pub struct CommonParams {
pub format: Option<Format>,
pub attributes: Option<AttributesSelect>,
pub query: Option<String>,
pub filter: Option<FacetReq>,
pub per_page: Option<u32>,
pub page: Option<u32>,
pub sort: Option<SortField>,
}Expand description
Represents common query parameters applicable to multiple endpoints.
Fields§
§format: Option<Format>Specifies the format of the returned results (fo=json or fo=yaml).
attributes: Option<AttributesSelect>Selects one or more attributes to include or exclude in the response.
query: Option<String>Conducts a keyword search in the metadata and any available full text (q parameter).
filter: Option<FacetReq>Applies facet filters to narrow down search results (fa parameter).
per_page: Option<u32>Sets the number of results per page (c parameter). Default is 25.
page: Option<u32>Specifies the page number to retrieve (sp parameter). The first page is 1.
sort: Option<SortField>Defines the sorting order of the results (sb parameter).
Trait Implementations§
Source§impl Clone for CommonParams
impl Clone for CommonParams
Source§fn clone(&self) -> CommonParams
fn clone(&self) -> CommonParams
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 CommonParams
impl Debug for CommonParams
Source§impl Default for CommonParams
impl Default for CommonParams
Source§fn default() -> CommonParams
fn default() -> CommonParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommonParams
impl<'de> Deserialize<'de> for CommonParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommonParams
impl RefUnwindSafe for CommonParams
impl Send for CommonParams
impl Sync for CommonParams
impl Unpin for CommonParams
impl UnwindSafe for CommonParams
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