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§fn clone_from(&mut self, source: &Self)
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<OrderFulfillmentFulfillmentEntry> for OrderFulfillmentFulfillmentEntry
impl PartialEq<OrderFulfillmentFulfillmentEntry> for OrderFulfillmentFulfillmentEntry
source§fn eq(&self, other: &OrderFulfillmentFulfillmentEntry) -> bool
fn eq(&self, other: &OrderFulfillmentFulfillmentEntry) -> bool
impl Eq for OrderFulfillmentFulfillmentEntry
impl StructuralEq for OrderFulfillmentFulfillmentEntry
impl StructuralPartialEq for OrderFulfillmentFulfillmentEntry
Auto Trait Implementations§
impl RefUnwindSafe for OrderFulfillmentFulfillmentEntry
impl Send for OrderFulfillmentFulfillmentEntry
impl Sync for OrderFulfillmentFulfillmentEntry
impl Unpin for OrderFulfillmentFulfillmentEntry
impl UnwindSafe for OrderFulfillmentFulfillmentEntry
Blanket Implementations§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.