mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +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;
|
use crate::types::Sticker;
|
||||||
|
|
||||||
/// An introduction for a Business.
|
/// An introduction for a Business.
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct BusinessIntro {
|
pub struct BusinessIntro {
|
||||||
/// Title text of the business intro
|
/// Title text of the business intro
|
||||||
pub title: Option<String>,
|
pub title: Option<String>,
|
||||||
|
|
|
@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
|
||||||
use crate::types::Location;
|
use crate::types::Location;
|
||||||
|
|
||||||
/// Details about the location of a Business
|
/// Details about the location of a Business
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct BusinessLocation {
|
pub struct BusinessLocation {
|
||||||
/// Address of the business.
|
/// Address of the business.
|
||||||
pub address: String,
|
pub address: String,
|
||||||
|
|
|
@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
|
||||||
use crate::types::BusinessOpeningHoursInterval;
|
use crate::types::BusinessOpeningHoursInterval;
|
||||||
|
|
||||||
/// Details about the opening hours of a Business.
|
/// Details about the opening hours of a Business.
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct BusinessOpeningHours {
|
pub struct BusinessOpeningHours {
|
||||||
/// Unique name of the time zone for which the opening hours are defined.
|
/// Unique name of the time zone for which the opening hours are defined.
|
||||||
pub time_zone_name: String,
|
pub time_zone_name: String,
|
||||||
|
|
Loading…
Reference in a new issue