pub struct RestaurantRow {Show 22 fields
pub id: String,
pub namespace: String,
pub name: String,
pub chain_name: Option<String>,
pub branch_name: Option<String>,
pub business_type: Option<String>,
pub cuisines: Vec<String>,
pub rating: Option<f64>,
pub vote_count: Option<i64>,
pub price_level: Option<i64>,
pub lat: Option<f64>,
pub lon: Option<f64>,
pub has_promo: Option<bool>,
pub promo_text: Option<String>,
pub open_now: Option<bool>,
pub opening_hours: Option<Value>,
pub photo_url: Option<String>,
pub distance_km: Option<f64>,
pub delivery_eta_min: Option<i64>,
pub delivery_fee_minor: Option<i64>,
pub free_delivery: Option<bool>,
pub raw: Option<Value>,
}Expand description
A restaurant or store, as seen in one response.
Fields§
§id: String§namespace: StringService namespace ("food", "mart").
name: String§chain_name: Option<String>§branch_name: Option<String>§business_type: Option<String>Upstream businessType (FOOD / MART).
cuisines: Vec<String>§rating: Option<f64>§vote_count: Option<i64>§price_level: Option<i64>1–3 (Grab’s priceTag).
lat: Option<f64>§lon: Option<f64>§has_promo: Option<bool>§promo_text: Option<String>§open_now: Option<bool>§opening_hours: Option<Value>§photo_url: Option<String>§distance_km: Option<f64>§delivery_eta_min: Option<i64>§delivery_fee_minor: Option<i64>§free_delivery: Option<bool>§raw: Option<Value>Trait Implementations§
Source§impl Clone for RestaurantRow
impl Clone for RestaurantRow
Source§fn clone(&self) -> RestaurantRow
fn clone(&self) -> RestaurantRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestaurantRow
impl Debug for RestaurantRow
Source§impl Default for RestaurantRow
impl Default for RestaurantRow
Source§fn default() -> RestaurantRow
fn default() -> RestaurantRow
Returns the “default value” for a type. Read more
Source§impl PartialEq for RestaurantRow
impl PartialEq for RestaurantRow
Source§impl Serialize for RestaurantRow
impl Serialize for RestaurantRow
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RestaurantRow
Auto Trait Implementations§
impl Forget for RestaurantRow
impl Freeze for RestaurantRow
impl RefUnwindSafe for RestaurantRow
impl Send for RestaurantRow
impl Sync for RestaurantRow
impl Unpin for RestaurantRow
impl UnsafeUnpin for RestaurantRow
impl UnwindSafe for RestaurantRow
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