pub struct SearchProduct {
pub ean: String,
pub localized_name: LocalizedName,
pub brand: Option<Brand>,
pub is_available: bool,
pub mobilescan: Option<MobileScan>,
}Fields§
§ean: String§localized_name: LocalizedName§brand: Option<Brand>§is_available: boolWhether it can be bought at this store right now, as opposed to merely existing
in the catalogue. Surfaced because an unavailable hit is still a valid EAN and
add_to_cart would accept it.
mobilescan: Option<MobileScan>Price lives under mobilescan, not at the top level, and is absent often enough
that it has to be optional.
Trait Implementations§
Source§impl Clone for SearchProduct
impl Clone for SearchProduct
Source§fn clone(&self) -> SearchProduct
fn clone(&self) -> SearchProduct
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 SearchProduct
impl Debug for SearchProduct
Source§impl<'de> Deserialize<'de> for SearchProduct
impl<'de> Deserialize<'de> for SearchProduct
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
Source§impl From<SearchProduct> for ProductView
impl From<SearchProduct> for ProductView
Source§fn from(p: SearchProduct) -> Self
fn from(p: SearchProduct) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SearchProduct
impl RefUnwindSafe for SearchProduct
impl Send for SearchProduct
impl Sync for SearchProduct
impl Unpin for SearchProduct
impl UnsafeUnpin for SearchProduct
impl UnwindSafe for SearchProduct
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