pub struct Merchant {
pub id: String,
pub name: String,
pub cuisine: String,
pub eta_min: Option<u32>,
pub distance_km: Option<f64>,
pub rating: Option<f64>,
pub promo: String,
pub open: bool,
}Expand description
A restaurant from a search.
Fields§
§id: StringGrab’s merchant id.
name: StringIts name.
cuisine: StringIts cuisines, comma-separated.
eta_min: Option<u32>Delivery estimate, minutes.
distance_km: Option<f64>How far, km.
rating: Option<f64>Its rating (out of 5).
promo: StringA promo line (“20% off”), if any.
open: boolWhether it takes orders now.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Merchant
impl<'de> Deserialize<'de> for Merchant
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
impl StructuralPartialEq for Merchant
Auto Trait Implementations§
impl Forget for Merchant
impl Freeze for Merchant
impl RefUnwindSafe for Merchant
impl Send for Merchant
impl Sync for Merchant
impl Unpin for Merchant
impl UnsafeUnpin for Merchant
impl UnwindSafe for Merchant
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