pub struct ListCatalogParameters {
pub cursor: Option<String>,
pub types: Option<Vec<CatalogObjectType>>,
pub catalog_version: Option<i64>,
}Expand description
This is a model struct for ListCatalogParameters (query parameters)
Fields§
§cursor: Option<String>The pagination cursor returned in the previous response. Leave unset for an initial request. The page size is currently set to be 100. See Pagination for more information.
types: Option<Vec<CatalogObjectType>>An optional case-insensitive, comma-separated list of object types to retrieve.
The valid values are defined in the CatalogObjectType enum, for example, ITEM,
ITEM_VARIATION, CATEGORY, DISCOUNT, TAX, MODIFIER, MODIFIER_LIST, IMAGE, etc.
If this is unspecified, the operation returns objects of all the top level types at the version of the Square API used to make the request. Object types that are nested onto other object types are not included in the defaults.
At the current API version the default object types are: ITEM, CATEGORY, TAX, DISCOUNT, MODIFIER_LIST, DINING_OPTION, TAX_EXEMPTION, SERVICE_CHARGE, PRICING_RULE, PRODUCT_SET, TIME_PERIOD, MEASUREMENT_UNIT, SUBSCRIPTION_PLAN, ITEM_OPTION, CUSTOM_ATTRIBUTE_DEFINITION, QUICK_AMOUNT_SETTINGS.
catalog_version: Option<i64>The specific version of the catalog objects to be included in the response. This allows you
to retrieve historical versions of objects. The specified version value is matched against
the [CatalogObject]s’ version attribute. If not included, results will be from the current
version of the catalog.
Implementations§
Source§impl ListCatalogParameters
impl ListCatalogParameters
pub fn to_query_string(&self) -> String
Trait Implementations§
Source§impl Clone for ListCatalogParameters
impl Clone for ListCatalogParameters
Source§fn clone(&self) -> ListCatalogParameters
fn clone(&self) -> ListCatalogParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListCatalogParameters
impl Debug for ListCatalogParameters
Source§impl Default for ListCatalogParameters
impl Default for ListCatalogParameters
Source§fn default() -> ListCatalogParameters
fn default() -> ListCatalogParameters
Source§impl Display for ListCatalogParameters
impl Display for ListCatalogParameters
Source§impl From<ListCatalogParameters> for String
impl From<ListCatalogParameters> for String
Source§fn from(list_catalog_parameters: ListCatalogParameters) -> Self
fn from(list_catalog_parameters: ListCatalogParameters) -> Self
Auto Trait Implementations§
impl Freeze for ListCatalogParameters
impl RefUnwindSafe for ListCatalogParameters
impl Send for ListCatalogParameters
impl Sync for ListCatalogParameters
impl Unpin for ListCatalogParameters
impl UnwindSafe for ListCatalogParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.