conogram/entities/shipping_option.rs
1use serde::{Deserialize, Serialize};
2
3use crate::entities::labeled_price::LabeledPrice;
4
5/// This object represents one shipping option.
6///
7/// API Reference: [link](https://core.telegram.org/bots/api/#shippingoption)
8#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
9pub struct ShippingOption {
10 /// Shipping option identifier
11 pub id: String,
12
13 /// Option title
14 pub title: String,
15
16 /// List of price portions
17 pub prices: Vec<LabeledPrice>,
18}
19
20// Divider: all content below this line will be preserved after code regen