pub enum Op {
Search {
query: String,
limit: usize,
},
Menu {
merchant_id: String,
query: Option<String>,
},
Cart(CartOp),
Quote,
Track {
order_id: Option<String>,
},
PlaceOrder {
quote_id: String,
},
}Expand description
One call a service’s caller (a tool, a command) asks for, checked.
Variants§
Search
Restaurants matching query.
Menu
A merchant’s menu, optionally only the items matching query.
Fields
Cart(CartOp)
A cart change.
Quote
Price the cart now.
Track
Ongoing orders (or one).
PlaceOrder
Place the cart’s order against a fresh matching quote.
Trait Implementations§
impl Eq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Forget for Op
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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