Struct square_api_client::models::CatalogIdMapping
source · Expand description
A mapping between a temporary client-supplied ID and a permanent server-generated ID.
When calling UpsertCatalogObject or BatchUpsertCatalogObjects to create a [CatalogObject] instance, you can supply a temporary ID for the to-be-created object, especially when the object is to be referenced elsewhere in the same request body. This temporary ID can be any string unique within the call, but must be prefixed by “#”.
After the request is submitted and the object created, a permanent server-generated ID is assigned to the new object. The permanent ID is unique across the Square catalog.
Fields
client_object_id: String
The client-supplied temporary #
-prefixed ID for a new CatalogObject
.
object_id: String
The permanent ID for the CatalogObject created by the server.
Trait Implementations
sourceimpl Clone for CatalogIdMapping
impl Clone for CatalogIdMapping
sourcefn clone(&self) -> CatalogIdMapping
fn clone(&self) -> CatalogIdMapping
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 CatalogIdMapping
impl Debug for CatalogIdMapping
sourceimpl<'de> Deserialize<'de> for CatalogIdMapping
impl<'de> Deserialize<'de> for CatalogIdMapping
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<CatalogIdMapping> for CatalogIdMapping
impl PartialEq<CatalogIdMapping> for CatalogIdMapping
sourcefn eq(&self, other: &CatalogIdMapping) -> bool
fn eq(&self, other: &CatalogIdMapping) -> bool
impl Eq for CatalogIdMapping
impl StructuralEq for CatalogIdMapping
impl StructuralPartialEq for CatalogIdMapping
Auto Trait Implementations
impl RefUnwindSafe for CatalogIdMapping
impl Send for CatalogIdMapping
impl Sync for CatalogIdMapping
impl Unpin for CatalogIdMapping
impl UnwindSafe for CatalogIdMapping
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.