Derive Default for BusinessIntro, BusinessLocation and BusinessOpeningHours

This commit is contained in:
Akshett Rai Jindal 2024-08-24 13:39:05 +05:30
parent 08d7d8f6b4
commit 951c8f1438
3 changed files with 3 additions and 3 deletions

View file

@ -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>,

View file

@ -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,

View file

@ -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,