Change id type in BusinessConnection to BusinessConnectionId

This commit is contained in:
Akshett Rai Jindal 2024-08-24 16:02:42 +05:30
parent e10af95add
commit f4fc11a011

View file

@ -1,13 +1,13 @@
use chrono::{DateTime, Utc}; use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use crate::types::{User, UserId}; use crate::types::{BusinessConnectionId, User, UserId};
/// Describes the connection of the bot with a business account. /// Describes the connection of the bot with a business account.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct BusinessConnection { pub struct BusinessConnection {
/// Unique identifier of the business connection /// Unique identifier of the business connection
pub id: String, pub id: BusinessConnectionId,
/// Business account user that created the business connection /// Business account user that created the business connection
pub user: User, pub user: User,