pub struct CatalogItemModifierListInfo {
pub modifier_list_id: String,
pub modifier_overrides: Option<Vec<CatalogModifierOverride>>,
pub min_selected_modifiers: Option<i32>,
pub max_selected_modifiers: Option<i32>,
pub enabled: Option<bool>,
}
Expand description
Options to control the properties of a CatalogModifierList
applied to a CatalogItem
instance.
Fields
modifier_list_id: String
modifier_overrides: Option<Vec<CatalogModifierOverride>>
min_selected_modifiers: Option<i32>
If 0 or larger, the smallest number of CatalogModifier
s that must be selected from this
CatalogModifierList
.
max_selected_modifiers: Option<i32>
If 0 or larger, the largest number of CatalogModifier
s that can be selected from this
CatalogModifierList
.
enabled: Option<bool>
If true
, enable this CatalogModifierList
. The default value is true
.
Trait Implementations
sourceimpl Clone for CatalogItemModifierListInfo
impl Clone for CatalogItemModifierListInfo
sourcefn clone(&self) -> CatalogItemModifierListInfo
fn clone(&self) -> CatalogItemModifierListInfo
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 CatalogItemModifierListInfo
impl Debug for CatalogItemModifierListInfo
sourceimpl Default for CatalogItemModifierListInfo
impl Default for CatalogItemModifierListInfo
sourcefn default() -> CatalogItemModifierListInfo
fn default() -> CatalogItemModifierListInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CatalogItemModifierListInfo
impl<'de> Deserialize<'de> for CatalogItemModifierListInfo
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<CatalogItemModifierListInfo> for CatalogItemModifierListInfo
impl PartialEq<CatalogItemModifierListInfo> for CatalogItemModifierListInfo
sourcefn eq(&self, other: &CatalogItemModifierListInfo) -> bool
fn eq(&self, other: &CatalogItemModifierListInfo) -> bool
impl Eq for CatalogItemModifierListInfo
impl StructuralEq for CatalogItemModifierListInfo
impl StructuralPartialEq for CatalogItemModifierListInfo
Auto Trait Implementations
impl RefUnwindSafe for CatalogItemModifierListInfo
impl Send for CatalogItemModifierListInfo
impl Sync for CatalogItemModifierListInfo
impl Unpin for CatalogItemModifierListInfo
impl UnwindSafe for CatalogItemModifierListInfo
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.