Crate open_menu_standard

Source

Structs§

Address
Physical address information
Availability
Item availability information
BusinessHours
Business hours for a particular day
CalculatedValues
Calculated values based on customizations
Contact
Contact information
Customer
Customer information
Customization
Customization options for an item
CustomizationOption
Individual option for a customization
Delivery
Delivery information
EuRegulationInfo
EU regulation nutrition information
IngredientGroup
Ingredient grouping
Item
Representation of a food or beverage item
MeasurementValue
Measurement value with unit
Metadata
Metadata about the OMS document
NutrientWithDetails
Nutrient with detailed breakdown
Nutrition
Nutritional information about an item
NutritionStandards
Nutrition standards compliance information
OmsDocument
Main OmsDocument struct representing a complete OpenMenuStandard document
Order
Order information
Payment
Payment information
Popularity
Item popularity metrics
SelectedCustomization
Selected customization for an item
TimeRange
Time range with open and close times
UsFdaInfo
US FDA nutrition information
Vendor
Information about the food service provider
VitaminMineral
Vitamin or mineral nutrient information

Enums§

CustomizationDefault
Default value for a customization, which varies by type
CustomizationSelection
Value of a selected customization, which varies by type
CustomizationType
Types of customizations
DayOfWeek
Days of the week
NutrientValue
Nutrient value, which can be either a simple measurement or another detailed breakdown
OmsError
General error type for the OMS library
OrderStatus
Order status
OrderType
Order type
PaymentStatus
Payment status

Constants§

OMS_FILE_EXTENSION
OpenMenuStandard file extension
OMS_MIME_TYPE
OpenMenuStandard MIME type for HTTP transmission
OMS_URL_SCHEME
OpenMenuStandard URL scheme
OMS_VERSION
Current version of the OpenMenuStandard

Functions§

add_custom_params
Add custom parameters to an OMS URL
calculate_price_adjustments
Calculate price adjustments for selected customizations
create_compact_oms_json
Create a compact JSON representation suitable for NFC tags
create_customize_url
Create a customize URL for an item
create_deep_link
Create a deep link to a document
create_minimal_document
Create a minimal OMS document with basic fields
create_oms_url
Create an OMS URL from components
create_order_url
Create an order URL for an item
create_share_url
Create a share URL for an item or document
create_template
Create a template OMS document for a specific vendor type
create_vendor_url
Create a view URL for a vendor
extract_and_update_selections
Extract and update only the customization selections from an OMS URL
generate_order
Generate a complete order from a document
is_valid_tap_to_order
Check if an OMS document is a valid tap-to-order document
load_document_from_file
Load an OMS document from a file
parse_oms_document
Parse an OMS document from a JSON string
parse_oms_url
Parse an OMS URL and extract the parameters
save_document_to_file
Save an OMS document to a file
validate_customization_type
Validation function for customization type
validate_document
Validates a complete OmsDocument
validate_vendor_type
Validation function for vendor type

Type Aliases§

Extensions
Extensions for vendor-specific or future extensions
OmsResult
Result type for OpenMenuStandard operations