pub struct CatalogItemOption {
pub name: Option<String>,
pub display_name: Option<String>,
pub description: Option<String>,
pub show_colors: Option<bool>,
pub values: Option<Vec<CatalogObject>>,
}
Expand description
A group of variations for a CatalogItem
.
Fields§
§name: Option<String>
The item option’s display name for the seller. Must be unique across all item options. This is a searchable attribute for use in applicable query filters.
display_name: Option<String>
The item option’s display name for the customer. This is a searchable attribute for use in applicable query filters.
description: Option<String>
The item option’s human-readable description. Displayed in the Square Point of Sale app for the seller and in the Online Store or on receipts for the buyer. This is a searchable attribute for use in applicable query filters.
show_colors: Option<bool>
If true, display colors for entries in values
when present.
values: Option<Vec<CatalogObject>>
A list of CatalogObjects containing the CatalogItemOptionValues
for this item.
Trait Implementations§
Source§impl Clone for CatalogItemOption
impl Clone for CatalogItemOption
Source§fn clone(&self) -> CatalogItemOption
fn clone(&self) -> CatalogItemOption
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CatalogItemOption
impl Debug for CatalogItemOption
Source§impl Default for CatalogItemOption
impl Default for CatalogItemOption
Source§fn default() -> CatalogItemOption
fn default() -> CatalogItemOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CatalogItemOption
impl<'de> Deserialize<'de> for CatalogItemOption
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
Source§impl PartialEq for CatalogItemOption
impl PartialEq for CatalogItemOption
Source§impl Serialize for CatalogItemOption
impl Serialize for CatalogItemOption
impl Eq for CatalogItemOption
impl StructuralPartialEq for CatalogItemOption
Auto Trait Implementations§
impl Freeze for CatalogItemOption
impl RefUnwindSafe for CatalogItemOption
impl Send for CatalogItemOption
impl Sync for CatalogItemOption
impl Unpin for CatalogItemOption
impl UnwindSafe for CatalogItemOption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.