From 31caa3ba048527e075702db3b309c449609a3cc2 Mon Sep 17 00:00:00 2001 From: Akshett Rai Jindal Date: Sat, 24 Aug 2024 12:59:19 +0530 Subject: [PATCH] Add more docs for business related structs --- crates/teloxide-core/src/types/business_intro.rs | 1 + crates/teloxide-core/src/types/business_location.rs | 1 + crates/teloxide-core/src/types/business_opening_hours.rs | 1 + .../teloxide-core/src/types/business_opening_hours_interval.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/crates/teloxide-core/src/types/business_intro.rs b/crates/teloxide-core/src/types/business_intro.rs index fbfd4b66..b4ce8694 100644 --- a/crates/teloxide-core/src/types/business_intro.rs +++ b/crates/teloxide-core/src/types/business_intro.rs @@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize}; use crate::types::Sticker; +/// An introduction for a Business. #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BusinessIntro { /// Title text of the business intro diff --git a/crates/teloxide-core/src/types/business_location.rs b/crates/teloxide-core/src/types/business_location.rs index 7eaee63d..7763a0de 100644 --- a/crates/teloxide-core/src/types/business_location.rs +++ b/crates/teloxide-core/src/types/business_location.rs @@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize}; use crate::types::Location; +/// Details about the location of a Business #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BusinessLocation { /// Address of the business. diff --git a/crates/teloxide-core/src/types/business_opening_hours.rs b/crates/teloxide-core/src/types/business_opening_hours.rs index f149563a..0ebddbfe 100644 --- a/crates/teloxide-core/src/types/business_opening_hours.rs +++ b/crates/teloxide-core/src/types/business_opening_hours.rs @@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize}; use crate::types::BusinessOpeningHoursInterval; +/// Details about the opening hours of a Business. #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BusinessOpeningHours { /// Unique name of the time zone for which the opening hours are defined. diff --git a/crates/teloxide-core/src/types/business_opening_hours_interval.rs b/crates/teloxide-core/src/types/business_opening_hours_interval.rs index 0c7c1a61..3c966928 100644 --- a/crates/teloxide-core/src/types/business_opening_hours_interval.rs +++ b/crates/teloxide-core/src/types/business_opening_hours_interval.rs @@ -1,5 +1,6 @@ use serde::{Deserialize, Serialize}; +/// Time intervals used to describe the opening hours of a Business. #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BusinessOpeningHoursInterval { /// The minute's sequence number in a week, starting on Monday, marking the