pub struct CatalogIdMapping {
pub client_object_id: String,
pub object_id: String,
}
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§
Source§impl Clone for CatalogIdMapping
impl Clone for CatalogIdMapping
Source§fn clone(&self) -> CatalogIdMapping
fn clone(&self) -> CatalogIdMapping
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 CatalogIdMapping
impl Debug for CatalogIdMapping
Source§impl<'de> Deserialize<'de> for CatalogIdMapping
impl<'de> Deserialize<'de> for CatalogIdMapping
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 CatalogIdMapping
impl PartialEq for CatalogIdMapping
impl Eq for CatalogIdMapping
impl StructuralPartialEq for CatalogIdMapping
Auto Trait Implementations§
impl Freeze for CatalogIdMapping
impl RefUnwindSafe for CatalogIdMapping
impl Send for CatalogIdMapping
impl Sync for CatalogIdMapping
impl Unpin for CatalogIdMapping
impl UnwindSafe for CatalogIdMapping
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.