mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
make OrderInfo use Option<String> instead of String
This commit is contained in:
parent
4af317e1fd
commit
1d0ff0a0f6
2 changed files with 5 additions and 5 deletions
|
@ -8,14 +8,14 @@ use crate::types::ShippingAddress;
|
|||
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
|
||||
pub struct OrderInfo {
|
||||
/// User's name.
|
||||
pub name: String,
|
||||
pub name: Option<String>,
|
||||
|
||||
/// User's phone number.
|
||||
pub phone_number: String,
|
||||
pub phone_number: Option<String>,
|
||||
|
||||
/// User's email.
|
||||
pub email: String,
|
||||
pub email: Option<String>,
|
||||
|
||||
/// User's shipping address.
|
||||
pub shipping_address: ShippingAddress,
|
||||
pub shipping_address: Option<ShippingAddress>,
|
||||
}
|
||||
|
|
|
@ -35,5 +35,5 @@ pub struct PreCheckoutQuery {
|
|||
pub shipping_option_id: Option<String>,
|
||||
|
||||
/// Order info provided by the user.
|
||||
pub order_info: Option<OrderInfo>,
|
||||
pub order_info: OrderInfo,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue