pub struct OrderFulfillmentFulfillmentEntry {
pub uid: Option<String>,
pub line_item_uid: String,
pub quantity: String,
pub metadata: Option<HashMap<String, String>>,
}
Expand description
This is a model struct for OrderFulfillmentFulfillmentEntry type.
Links an order line item to a fulfillment.
Each entry must reference a valid uid
for an order line item in the line_item_uid
field, as
well as a quantity
to fulfill.
Fields§
§uid: Option<String>
A unique ID that identifies the fulfillment entry only within this order.
line_item_uid: String
The uid
from the order line item.
quantity: String
The quantity of the line item being fulfilled, formatted as a decimal number. For example, “3”.
Fulfillments for line items with a quantity_unit can have non-integer quantities. For example, “1.70000”.
metadata: Option<HashMap<String, String>>
Application-defined data attached to this fulfillment entry. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (such as personally identifiable information or card details).
Keys written by applications must be 60 characters or less and must be in the character set [a-zA-Z0-9_-]
. Entries can also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ‘:’ character.
Values have a maximum length of 255 characters.
An application can have up to 10 entries per metadata field.
Entries written by applications are private and can only be read or modified by the same application.
For more information, see Metadata.
Trait Implementations§
Source§impl Clone for OrderFulfillmentFulfillmentEntry
impl Clone for OrderFulfillmentFulfillmentEntry
Source§fn clone(&self) -> OrderFulfillmentFulfillmentEntry
fn clone(&self) -> OrderFulfillmentFulfillmentEntry
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for OrderFulfillmentFulfillmentEntry
impl Default for OrderFulfillmentFulfillmentEntry
Source§fn default() -> OrderFulfillmentFulfillmentEntry
fn default() -> OrderFulfillmentFulfillmentEntry
Source§impl<'de> Deserialize<'de> for OrderFulfillmentFulfillmentEntry
impl<'de> Deserialize<'de> for OrderFulfillmentFulfillmentEntry
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 OrderFulfillmentFulfillmentEntry
impl PartialEq for OrderFulfillmentFulfillmentEntry
Source§fn eq(&self, other: &OrderFulfillmentFulfillmentEntry) -> bool
fn eq(&self, other: &OrderFulfillmentFulfillmentEntry) -> bool
self
and other
values to be equal, and is used by ==
.impl Eq for OrderFulfillmentFulfillmentEntry
impl StructuralPartialEq for OrderFulfillmentFulfillmentEntry
Auto Trait Implementations§
impl Freeze for OrderFulfillmentFulfillmentEntry
impl RefUnwindSafe for OrderFulfillmentFulfillmentEntry
impl Send for OrderFulfillmentFulfillmentEntry
impl Sync for OrderFulfillmentFulfillmentEntry
impl Unpin for OrderFulfillmentFulfillmentEntry
impl UnwindSafe for OrderFulfillmentFulfillmentEntry
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.