pub struct LibraryItemsParams {
pub page: Option<u32>,
pub page_size: Option<u32>,
pub get_checksum: Option<bool>,
pub get_filters: Option<bool>,
pub library: Option<bool>,
pub archived: Option<bool>,
pub updated_date_after: Option<String>,
}Expand description
Query parameters for the GET /order_products (library items) endpoint.
All fields are optional. Set a field to Some(value) to include the corresponding
query parameter in the request. Use Default::default() to start with no filters
applied.
§Examples
use dtrpg_sdk::LibraryItemsParams;
let params = LibraryItemsParams {
page: Some(2),
page_size: Some(50),
get_filters: Some(true),
..Default::default()
};Fields§
§page: Option<u32>The page number to retrieve (1-based).
page_size: Option<u32>The number of items to return per page.
get_checksum: Option<bool>When true, includes checksum data for each product file (getChecksum=1).
get_filters: Option<bool>When true, includes filter category data for each product (getFilters=1).
library: Option<bool>When true, restricts results to library (non-archived) products (library=true).
archived: Option<bool>When true, includes archived products; when false, excludes them (archived=1/0).
updated_date_after: Option<String>ISO 8601 date string. When set, returns only products updated after this date
(updatedDate[after]=...).
Trait Implementations§
Source§impl Default for LibraryItemsParams
impl Default for LibraryItemsParams
Source§fn default() -> LibraryItemsParams
fn default() -> LibraryItemsParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LibraryItemsParams
impl RefUnwindSafe for LibraryItemsParams
impl Send for LibraryItemsParams
impl Sync for LibraryItemsParams
impl Unpin for LibraryItemsParams
impl UnsafeUnpin for LibraryItemsParams
impl UnwindSafe for LibraryItemsParams
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