Struct vinted_rs::model::payment_method::PayInMethod
source · pub struct PayInMethod {
pub id: i32,
pub code: String,
pub requires_credit_card: bool,
pub event_tracking_code: Option<String>,
pub icon: Option<String>,
pub enabled: bool,
pub translated_name: Option<String>,
pub note: Option<String>,
pub method_change_possible: bool,
}
Fields§
§id: i32
§code: String
Code of the payment method given by Vinted
requires_credit_card: bool
If the payment method requires a credit card
event_tracking_code: Option<String>
§icon: Option<String>
Icon of the payment method
enabled: bool
§translated_name: Option<String>
§note: Option<String>
§method_change_possible: bool
Trait Implementations§
source§impl Clone for PayInMethod
impl Clone for PayInMethod
source§fn clone(&self) -> PayInMethod
fn clone(&self) -> PayInMethod
Returns a copy of the value. Read more
1.0.0 · 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 PayInMethod
impl Debug for PayInMethod
source§impl<'de> Deserialize<'de> for PayInMethod
impl<'de> Deserialize<'de> for PayInMethod
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 Display for PayInMethod
impl Display for PayInMethod
source§impl FromRedisValue for PayInMethod
impl FromRedisValue for PayInMethod
source§fn from_redis_value(v: &Value) -> RedisResult<Self>
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>
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§impl Hash for PayInMethod
impl Hash for PayInMethod
source§impl PartialEq for PayInMethod
impl PartialEq for PayInMethod
source§fn eq(&self, other: &PayInMethod) -> bool
fn eq(&self, other: &PayInMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PayInMethod
impl Serialize for PayInMethod
source§impl ToRedisArgs for PayInMethod
impl ToRedisArgs for PayInMethod
source§fn write_redis_args<W>(&self, out: &mut W)where
W: ?Sized + RedisWrite,
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>>
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
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
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.impl Eq for PayInMethod
impl StructuralPartialEq for PayInMethod
Auto Trait Implementations§
impl Freeze for PayInMethod
impl RefUnwindSafe for PayInMethod
impl Send for PayInMethod
impl Sync for PayInMethod
impl Unpin for PayInMethod
impl UnwindSafe for PayInMethod
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.