pub struct OfferData {Show 20 fields
pub inner_id: String,
pub url: String,
pub mark: String,
pub model: String,
pub generation: String,
pub configuration: String,
pub complectation: String,
pub year: String,
pub color: String,
pub price: String,
pub km_age: String,
pub engine_type: String,
pub transmission_type: String,
pub body_type: String,
pub address: String,
pub seller_type: String,
pub is_dealer: bool,
pub displacement: String,
pub offer_created: String,
pub images: Vec<String>,
}Expand description
Common offer data fields shared across all sources.
Since each source may have additional fields, deserialize from
OfferItem.data into this or into your own struct.
Fields§
§inner_id: String§url: String§mark: String§model: String§generation: String§configuration: String§complectation: String§year: String§color: String§price: String§km_age: String§engine_type: String§transmission_type: String§body_type: String§address: String§seller_type: String§is_dealer: bool§displacement: String§offer_created: String§images: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for OfferData
impl<'de> Deserialize<'de> for OfferData
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
Auto Trait Implementations§
impl Freeze for OfferData
impl RefUnwindSafe for OfferData
impl Send for OfferData
impl Sync for OfferData
impl Unpin for OfferData
impl UnsafeUnpin for OfferData
impl UnwindSafe for OfferData
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