Struct botapi::gen_types::NoSkipOrderInfo
source · pub struct NoSkipOrderInfo {
pub name: Option<String>,
pub phone_number: Option<String>,
pub email: Option<String>,
pub shipping_address: Option<BoxWrapper<Unbox<ShippingAddress>>>,
}
Expand description
Companion type to OrderInfo that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§name: Option<String>
§phone_number: Option<String>
§email: Option<String>
§shipping_address: Option<BoxWrapper<Unbox<ShippingAddress>>>
Implementations§
Trait Implementations§
source§impl Clone for NoSkipOrderInfo
impl Clone for NoSkipOrderInfo
source§fn clone(&self) -> NoSkipOrderInfo
fn clone(&self) -> NoSkipOrderInfo
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 NoSkipOrderInfo
impl Debug for NoSkipOrderInfo
source§impl Default for NoSkipOrderInfo
impl Default for NoSkipOrderInfo
source§fn default() -> NoSkipOrderInfo
fn default() -> NoSkipOrderInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NoSkipOrderInfo
impl<'de> Deserialize<'de> for NoSkipOrderInfo
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<NoSkipOrderInfo> for OrderInfo
impl From<NoSkipOrderInfo> for OrderInfo
source§fn from(t: NoSkipOrderInfo) -> Self
fn from(t: NoSkipOrderInfo) -> Self
Converts to this type from the input type.
source§impl Hash for NoSkipOrderInfo
impl Hash for NoSkipOrderInfo
source§impl Into<NoSkipOrderInfo> for OrderInfo
impl Into<NoSkipOrderInfo> for OrderInfo
source§fn into(self) -> NoSkipOrderInfo
fn into(self) -> NoSkipOrderInfo
Converts this type into the (usually inferred) input type.
source§impl Ord for NoSkipOrderInfo
impl Ord for NoSkipOrderInfo
source§fn cmp(&self, other: &NoSkipOrderInfo) -> Ordering
fn cmp(&self, other: &NoSkipOrderInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NoSkipOrderInfo
impl PartialEq for NoSkipOrderInfo
source§fn eq(&self, other: &NoSkipOrderInfo) -> bool
fn eq(&self, other: &NoSkipOrderInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoSkipOrderInfo
impl PartialOrd for NoSkipOrderInfo
source§fn partial_cmp(&self, other: &NoSkipOrderInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &NoSkipOrderInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for NoSkipOrderInfo
impl Serialize for NoSkipOrderInfo
impl Eq for NoSkipOrderInfo
impl StructuralPartialEq for NoSkipOrderInfo
Auto Trait Implementations§
impl Freeze for NoSkipOrderInfo
impl RefUnwindSafe for NoSkipOrderInfo
impl Send for NoSkipOrderInfo
impl Sync for NoSkipOrderInfo
impl Unpin for NoSkipOrderInfo
impl UnwindSafe for NoSkipOrderInfo
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.