pub struct ShoppingResult {
pub title: String,
pub link: String,
pub price: Option<String>,
pub source: Option<String>,
pub image: Option<String>,
pub position: u32,
}
Expand description
Shopping result for product searches
Fields§
§title: String
Product title
link: String
Product link
price: Option<String>
Product price (optional)
source: Option<String>
Product source/merchant (optional)
image: Option<String>
Product image URL (optional)
position: u32
Position in shopping results
Trait Implementations§
Source§impl Debug for ShoppingResult
impl Debug for ShoppingResult
Source§impl<'de> Deserialize<'de> for ShoppingResult
impl<'de> Deserialize<'de> for ShoppingResult
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 PartialEq for ShoppingResult
impl PartialEq for ShoppingResult
impl StructuralPartialEq for ShoppingResult
Auto Trait Implementations§
impl Freeze for ShoppingResult
impl RefUnwindSafe for ShoppingResult
impl Send for ShoppingResult
impl Sync for ShoppingResult
impl Unpin for ShoppingResult
impl UnwindSafe for ShoppingResult
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