Struct square_api_client::models::CatalogItemOption
source · 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
sourceimpl Clone for CatalogItemOption
impl Clone for CatalogItemOption
sourcefn clone(&self) -> CatalogItemOption
fn clone(&self) -> CatalogItemOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CatalogItemOption
impl Debug for CatalogItemOption
sourceimpl Default for CatalogItemOption
impl Default for CatalogItemOption
sourcefn default() -> CatalogItemOption
fn default() -> CatalogItemOption
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CatalogItemOption
impl<'de> Deserialize<'de> for CatalogItemOption
sourcefn 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
sourceimpl PartialEq<CatalogItemOption> for CatalogItemOption
impl PartialEq<CatalogItemOption> for CatalogItemOption
sourcefn eq(&self, other: &CatalogItemOption) -> bool
fn eq(&self, other: &CatalogItemOption) -> bool
sourceimpl Serialize for CatalogItemOption
impl Serialize for CatalogItemOption
impl Eq for CatalogItemOption
impl StructuralEq for CatalogItemOption
impl StructuralPartialEq for CatalogItemOption
Auto Trait Implementations
impl RefUnwindSafe for CatalogItemOption
impl Send for CatalogItemOption
impl Sync for CatalogItemOption
impl Unpin for CatalogItemOption
impl UnwindSafe for CatalogItemOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.