Add more docs for business related structs

This commit is contained in:
Akshett Rai Jindal 2024-08-24 12:59:19 +05:30
parent 2f8e62f401
commit 31caa3ba04
4 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize};
use crate::types::Sticker; use crate::types::Sticker;
/// An introduction for a Business.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct BusinessIntro { pub struct BusinessIntro {
/// Title text of the business intro /// Title text of the business intro

View file

@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize};
use crate::types::Location; use crate::types::Location;
/// Details about the location of a Business
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct BusinessLocation { pub struct BusinessLocation {
/// Address of the business. /// Address of the business.

View file

@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize};
use crate::types::BusinessOpeningHoursInterval; use crate::types::BusinessOpeningHoursInterval;
/// Details about the opening hours of a Business.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[derive(Clone, Debug, 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.

View file

@ -1,5 +1,6 @@
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
/// Time intervals used to describe the opening hours of a Business.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct BusinessOpeningHoursInterval { pub struct BusinessOpeningHoursInterval {
/// The minute's sequence number in a week, starting on Monday, marking the /// The minute's sequence number in a week, starting on Monday, marking the