Struct tg_flows::ShippingOption
source · pub struct ShippingOption {
pub id: String,
pub title: String,
pub prices: Vec<LabeledPrice>,
}Expand description
This object represents one shipping option.
Fields§
§id: StringShipping option identifier.
title: StringOption title.
prices: Vec<LabeledPrice>List of price portions.
Implementations§
source§impl ShippingOption
impl ShippingOption
pub fn new<S1, S2, P>(id: S1, title: S2, prices: P) -> Selfwhere S1: Into<String>, S2: Into<String>, P: IntoIterator<Item = LabeledPrice>,
pub fn id<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn title<S>(self, val: S) -> Selfwhere S: Into<String>,
pub fn prices<P>(self, val: P) -> Selfwhere 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<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 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 ==.