Struct square_api_client::models::CatalogItemOptionValue
source · [−]pub struct CatalogItemOptionValue {
pub item_option_id: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub color: Option<String>,
pub ordinal: Option<i32>,
}
Expand description
An enumerated value that can link a CatalogItemVariation
to an item option as one of its item
option values.
Fields
item_option_id: Option<String>
Unique ID of the associated item option.
name: Option<String>
Name of this item option value. This is a searchable attribute for use in applicable query filters.
description: Option<String>
A human-readable description for the option value. This is a searchable attribute for use in applicable query filters.
color: Option<String>
The HTML-supported hex color for the item option (e.g., “#ff8d4e85”). Only displayed if
show_colors
is enabled on the parent ItemOption
. When left unset, color
defaults to
white (“#ffffff”) when show_colors
is enabled on the parent ItemOption
.
ordinal: Option<i32>
Determines where this option value appears in a list of option values.
Trait Implementations
sourceimpl Clone for CatalogItemOptionValue
impl Clone for CatalogItemOptionValue
sourcefn clone(&self) -> CatalogItemOptionValue
fn clone(&self) -> CatalogItemOptionValue
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 CatalogItemOptionValue
impl Debug for CatalogItemOptionValue
sourceimpl Default for CatalogItemOptionValue
impl Default for CatalogItemOptionValue
sourcefn default() -> CatalogItemOptionValue
fn default() -> CatalogItemOptionValue
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CatalogItemOptionValue
impl<'de> Deserialize<'de> for CatalogItemOptionValue
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<CatalogItemOptionValue> for CatalogItemOptionValue
impl PartialEq<CatalogItemOptionValue> for CatalogItemOptionValue
sourcefn eq(&self, other: &CatalogItemOptionValue) -> bool
fn eq(&self, other: &CatalogItemOptionValue) -> bool
sourceimpl Serialize for CatalogItemOptionValue
impl Serialize for CatalogItemOptionValue
impl Eq for CatalogItemOptionValue
impl StructuralEq for CatalogItemOptionValue
impl StructuralPartialEq for CatalogItemOptionValue
Auto Trait Implementations
impl RefUnwindSafe for CatalogItemOptionValue
impl Send for CatalogItemOptionValue
impl Sync for CatalogItemOptionValue
impl Unpin for CatalogItemOptionValue
impl UnwindSafe for CatalogItemOptionValue
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.