Struct teloxide::types::ShippingOption
source · pub struct ShippingOption {
pub id: String,
pub title: String,
pub prices: Vec<LabeledPrice, Global>,
}
Expand description
This object represents one shipping option.
Fields§
§id: String
Shipping option identifier.
title: String
Option title.
prices: Vec<LabeledPrice, Global>
List of price portions.
Implementations§
source§impl ShippingOption
impl ShippingOption
pub fn new<S1, S2, P>(id: S1, title: S2, prices: P) -> ShippingOptionwhere
S1: Into<String>,
S2: Into<String>,
P: IntoIterator<Item = LabeledPrice>,
pub fn id<S>(self, val: S) -> ShippingOptionwhere
S: Into<String>,
pub fn title<S>(self, val: S) -> ShippingOptionwhere
S: Into<String>,
pub fn prices<P>(self, val: P) -> ShippingOptionwhere
P: IntoIterator<Item = LabeledPrice>,
Trait Implementations§
source§impl Clone for ShippingOption
impl Clone for ShippingOption
source§fn clone(&self) -> ShippingOption
fn clone(&self) -> ShippingOption
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 ShippingOption
impl Debug for ShippingOption
source§impl<'de> Deserialize<'de> for ShippingOption
impl<'de> Deserialize<'de> for ShippingOption
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ShippingOption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ShippingOption, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ShippingOption
impl Hash for ShippingOption
source§impl PartialEq<ShippingOption> for ShippingOption
impl PartialEq<ShippingOption> for ShippingOption
source§fn eq(&self, other: &ShippingOption) -> bool
fn eq(&self, other: &ShippingOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ShippingOption
impl Serialize for ShippingOption
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ShippingOption
impl StructuralEq for ShippingOption
impl StructuralPartialEq for ShippingOption
Auto Trait Implementations§
impl RefUnwindSafe for ShippingOption
impl Send for ShippingOption
impl Sync for ShippingOption
impl Unpin for ShippingOption
impl UnwindSafe for ShippingOption
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.