pub struct CatalogCategory {
pub name: Option<String>,
pub image_ids: Option<Vec<String>>,
}
Expand description
A category to which a CatalogItem
instance belongs.
Fields§
§name: Option<String>
The category name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.
image_ids: Option<Vec<String>>
The IDs of images associated with this CatalogCategory
instance. Currently these images
are not displayed by Square, but are free to be displayed in 3rd party applications.
Trait Implementations§
Source§impl Clone for CatalogCategory
impl Clone for CatalogCategory
Source§fn clone(&self) -> CatalogCategory
fn clone(&self) -> CatalogCategory
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 CatalogCategory
impl Debug for CatalogCategory
Source§impl Default for CatalogCategory
impl Default for CatalogCategory
Source§fn default() -> CatalogCategory
fn default() -> CatalogCategory
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CatalogCategory
impl<'de> Deserialize<'de> for CatalogCategory
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 CatalogCategory
impl PartialEq for CatalogCategory
Source§impl Serialize for CatalogCategory
impl Serialize for CatalogCategory
impl Eq for CatalogCategory
impl StructuralPartialEq for CatalogCategory
Auto Trait Implementations§
impl Freeze for CatalogCategory
impl RefUnwindSafe for CatalogCategory
impl Send for CatalogCategory
impl Sync for CatalogCategory
impl Unpin for CatalogCategory
impl UnwindSafe for CatalogCategory
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.