Struct square_api_client::models::CatalogModifier
source · [−]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
sourceimpl Clone for CatalogModifier
impl Clone for CatalogModifier
sourcefn clone(&self) -> CatalogModifier
fn clone(&self) -> CatalogModifier
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 CatalogModifier
impl Debug for CatalogModifier
sourceimpl Default for CatalogModifier
impl Default for CatalogModifier
sourcefn default() -> CatalogModifier
fn default() -> CatalogModifier
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CatalogModifier
impl<'de> Deserialize<'de> for CatalogModifier
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<CatalogModifier> for CatalogModifier
impl PartialEq<CatalogModifier> for CatalogModifier
sourcefn eq(&self, other: &CatalogModifier) -> bool
fn eq(&self, other: &CatalogModifier) -> bool
sourceimpl Serialize for CatalogModifier
impl Serialize for CatalogModifier
impl Eq for CatalogModifier
impl StructuralEq for CatalogModifier
impl StructuralPartialEq for CatalogModifier
Auto Trait Implementations
impl RefUnwindSafe for CatalogModifier
impl Send for CatalogModifier
impl Sync for CatalogModifier
impl Unpin for CatalogModifier
impl UnwindSafe for CatalogModifier
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.