pub struct CatalogModifier {
pub name: Option<String>,
pub price_money: Option<Money>,
pub ordinal: Option<i32>,
pub modifier_list_id: Option<String>,
pub image_ids: Option<Vec<String>>,
pub on_by_default: Option<bool>,
}
Expand description
A modifier applicable to items at the time of sale.
Fields§
§name: Option<String>
The modifier name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.
Max Length 255
price_money: Option<Money>
The modifier price.
ordinal: Option<i32>
Determines where this CatalogModifier
appears in the CatalogModifierList
.
modifier_list_id: Option<String>
The ID of the CatalogModifierList
associated with this modifier.
image_ids: Option<Vec<String>>
The IDs of images associated with this CatalogModifier
instance. Currently these images
are not displayed by Square, but are free to be displayed in 3rd party applications.
on_by_default: Option<bool>
If true
, this CatalogModifier
should be selected by default for this CatalogItem
.
Trait Implementations§
Source§impl Clone for CatalogModifier
impl Clone for CatalogModifier
Source§fn clone(&self) -> CatalogModifier
fn clone(&self) -> CatalogModifier
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 CatalogModifier
impl Debug for CatalogModifier
Source§impl Default for CatalogModifier
impl Default for CatalogModifier
Source§fn default() -> CatalogModifier
fn default() -> CatalogModifier
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CatalogModifier
impl<'de> Deserialize<'de> for CatalogModifier
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 CatalogModifier
impl PartialEq for CatalogModifier
Source§impl Serialize for CatalogModifier
impl Serialize for CatalogModifier
impl Eq for CatalogModifier
impl StructuralPartialEq for CatalogModifier
Auto Trait Implementations§
impl Freeze for CatalogModifier
impl RefUnwindSafe for CatalogModifier
impl Send for CatalogModifier
impl Sync for CatalogModifier
impl Unpin for CatalogModifier
impl UnwindSafe for CatalogModifier
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.