pub struct CatalogImage {
pub name: Option<String>,
pub url: Option<String>,
pub caption: Option<String>,
pub photo_studio_order_id: Option<String>,
}
Expand description
An image file to use in Square catalogs.
It can be associated with CatalogItem
, CatalogItemVariation
, CatalogCategory
, and
CatalogModifierList
objects. Only the images on items and item variations are exposed in
Dashboard. Only the first image on an item is displayed in Square Point of Sale (SPOS). Images
on items and variations are displayed through Square Online Store. Images on other object types
are for use by 3rd party application developers.
Fields§
§name: Option<String>
The internal name to identify this image in calls to the Square API. This is a searchable attribute for use in applicable query filters using the SearchCatalogObjects. It is not unique and should not be shown in a buyer facing context.
url: Option<String>
The URL of this image, generated by Square after an image is uploaded using the CreateCatalogImage endpoint. To modify the image, use the UpdateCatalogImage endpoint. Do not change the URL field.
caption: Option<String>
A caption that describes what is shown in the image. Displayed in the Square Online Store. This is a searchable attribute for use in applicable query filters using the SearchCatalogObjects.
photo_studio_order_id: Option<String>
The immutable order ID for this image object created by the Photo Studio service in Square Online Store.
Trait Implementations§
Source§impl Clone for CatalogImage
impl Clone for CatalogImage
Source§fn clone(&self) -> CatalogImage
fn clone(&self) -> CatalogImage
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CatalogImage
impl Debug for CatalogImage
Source§impl Default for CatalogImage
impl Default for CatalogImage
Source§fn default() -> CatalogImage
fn default() -> CatalogImage
Source§impl<'de> Deserialize<'de> for CatalogImage
impl<'de> Deserialize<'de> for CatalogImage
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>,
Source§impl PartialEq for CatalogImage
impl PartialEq for CatalogImage
Source§impl Serialize for CatalogImage
impl Serialize for CatalogImage
impl Eq for CatalogImage
impl StructuralPartialEq for CatalogImage
Auto Trait Implementations§
impl Freeze for CatalogImage
impl RefUnwindSafe for CatalogImage
impl Send for CatalogImage
impl Sync for CatalogImage
impl Unpin for CatalogImage
impl UnwindSafe for CatalogImage
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
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
key
and return true
if they are equal.