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§
Source§impl Clone for CatalogItemOptionValue
impl Clone for CatalogItemOptionValue
Source§fn clone(&self) -> CatalogItemOptionValue
fn clone(&self) -> CatalogItemOptionValue
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 CatalogItemOptionValue
impl Debug for CatalogItemOptionValue
Source§impl Default for CatalogItemOptionValue
impl Default for CatalogItemOptionValue
Source§fn default() -> CatalogItemOptionValue
fn default() -> CatalogItemOptionValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CatalogItemOptionValue
impl<'de> Deserialize<'de> for CatalogItemOptionValue
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 CatalogItemOptionValue
impl PartialEq for CatalogItemOptionValue
Source§impl Serialize for CatalogItemOptionValue
impl Serialize for CatalogItemOptionValue
impl Eq for CatalogItemOptionValue
impl StructuralPartialEq for CatalogItemOptionValue
Auto Trait Implementations§
impl Freeze for CatalogItemOptionValue
impl RefUnwindSafe for CatalogItemOptionValue
impl Send for CatalogItemOptionValue
impl Sync for CatalogItemOptionValue
impl Unpin for CatalogItemOptionValue
impl UnwindSafe for CatalogItemOptionValue
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.