pub struct AdvancedItem {
Show 51 fields pub id: i64, pub title: String, pub description: String, pub size_title: String, pub brand_title: String, pub composition: Option<String>, pub extra_conditions: Option<String>, pub brand_id: Option<i32>, pub size_id: Option<i32>, pub status_id: Option<i32>, pub status_fr: Option<String>, pub disposal_conditions: Option<i32>, pub catalog_id: Option<i32>, pub color1_id: Option<i32>, pub color1: Option<String>, pub color2_id: Option<i32>, pub color2: Option<String>, pub package_size_id: i32, pub country_id: i32, pub city_id: Option<i32>, pub city: Option<String>, pub active_bid_count: i32, pub favourite_count: i32, pub view_count: i32, pub moderation_status: i32, pub last_push_up_at: Option<String>, pub related_catalog_ids: Vec<i32>, pub original_price_numeric: String, pub currency: String, pub price_numeric: String, pub created_at_ts: String, pub updated_at_ts: Option<String>, pub user_updated_at_ts: Option<String>, pub photos: Vec<Photo>, pub url: String, pub user: AdvancedUser, pub is_for_sell: bool, pub is_for_swap: bool, pub is_for_give_away: bool, pub is_handicraft: bool, pub is_processing: bool, pub is_draft: bool, pub promoted: bool, pub package_size_standard: bool, pub related_catalogs_enabled: bool, pub is_hidden: i32, pub is_reserved: i32, pub reserved_for_user_id: Option<i32>, pub is_visible: i32, pub is_unisex: i32, pub is_closed: i32,
}

Fields§

§id: i64

Vinted item ID

§title: String

Item title

§description: String

Item description

§size_title: String

See Size

§brand_title: String

See Brand

§composition: Option<String>§extra_conditions: Option<String>§brand_id: Option<i32>

See Brand

§size_id: Option<i32>§status_id: Option<i32>§status_fr: Option<String>

Status of the item in French 🇫🇷

§disposal_conditions: Option<i32>§catalog_id: Option<i32>§color1_id: Option<i32>§color1: Option<String>§color2_id: Option<i32>§color2: Option<String>§package_size_id: i32§country_id: i32

See Country

§city_id: Option<i32>§city: Option<String>§active_bid_count: i32

Number of bids on the item

§favourite_count: i32

Number of times the item was added to favourites

§view_count: i32

Number of times the item was viewed

§moderation_status: i32

Moderation status of the item (Vinted internal use only)

§last_push_up_at: Option<String>§related_catalog_ids: Vec<i32>

Related ‘Brand’ IDs

§original_price_numeric: String

Original price of the item

§currency: String

Currency the item was posted with. See Currency for valid currencies on Vinted

§price_numeric: String

Current valid price of the item

§created_at_ts: String§updated_at_ts: Option<String>§user_updated_at_ts: Option<String>§photos: Vec<Photo>§url: String§user: AdvancedUser§is_for_sell: bool§is_for_swap: bool§is_for_give_away: bool§is_handicraft: bool§is_processing: bool§is_draft: bool§promoted: bool§package_size_standard: bool§related_catalogs_enabled: bool§is_hidden: i32§is_reserved: i32§reserved_for_user_id: Option<i32>§is_visible: i32§is_unisex: i32§is_closed: i32

Trait Implementations§

source§

impl Clone for AdvancedItem

source§

fn clone(&self) -> AdvancedItem

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AdvancedItem

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AdvancedItem

source§

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 Display for AdvancedItem

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromRedisValue for AdvancedItem

source§

fn from_redis_value(v: &Value) -> RedisResult<Self>

Given a redis Value this attempts to convert it into the given destination type. If that fails because it’s not compatible an appropriate error is generated.
source§

fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>

Similar to from_redis_value but constructs a vector of objects from another vector of values. This primarily exists internally to customize the behavior for vectors of tuples.
source§

fn from_byte_vec(_vec: &[u8]) -> Option<Vec<Self>>

Convert bytes to a single element vector.
source§

impl Hash for AdvancedItem

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for AdvancedItem

source§

fn eq(&self, other: &AdvancedItem) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for AdvancedItem

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToRedisArgs for AdvancedItem

source§

fn write_redis_args<W>(&self, out: &mut W)
where W: ?Sized + RedisWrite,

This writes the value into a vector of bytes. Each item is a single argument. Most items generate a single item. Read more
source§

fn to_redis_args(&self) -> Vec<Vec<u8>>

This converts the value into a vector of bytes. Each item is a single argument. Most items generate a vector of a single item. Read more
source§

fn describe_numeric_behavior(&self) -> NumericBehavior

Returns an information about the contained value with regards to it’s numeric behavior in a redis context. This is used in some high level concepts to switch between different implementations of redis functions (for instance INCR vs INCRBYFLOAT).
source§

fn is_single_arg(&self) -> bool

Returns an indiciation if the value contained is exactly one argument. It returns false if it’s zero or more than one. This is used in some high level functions to intelligently switch between GET and MGET variants.
source§

impl Eq for AdvancedItem

source§

impl StructuralPartialEq for AdvancedItem

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer ) -> Result<(), ErrorImpl>

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,