mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 06:25:10 +01:00
Derive Default for BusinessIntro
, BusinessLocation
and BusinessOpeningHours
This commit is contained in:
parent
08d7d8f6b4
commit
951c8f1438
3 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
|
|||
use crate::types::Sticker;
|
||||
|
||||
/// An introduction for a Business.
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
|
||||
pub struct BusinessIntro {
|
||||
/// Title text of the business intro
|
||||
pub title: Option<String>,
|
||||
|
|
|
@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
|
|||
use crate::types::Location;
|
||||
|
||||
/// Details about the location of a Business
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
|
||||
pub struct BusinessLocation {
|
||||
/// Address of the business.
|
||||
pub address: String,
|
||||
|
|
|
@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
|
|||
use crate::types::BusinessOpeningHoursInterval;
|
||||
|
||||
/// Details about the opening hours of a Business.
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
|
||||
pub struct BusinessOpeningHours {
|
||||
/// Unique name of the time zone for which the opening hours are defined.
|
||||
pub time_zone_name: String,
|
||||
|
|
Loading…
Reference in a new issue