ferrisgram/helpers/chat.rs
1// WARNING: THIS CODE IS AUTOGENERATED.
2// DO NOT EDIT!!!
3
4#![allow(clippy::too_many_arguments, clippy::new_without_default)]
5use crate::types::Chat;
6
7impl Chat {
8 /// This function creates an empty struct for the object Chat.
9 pub fn new(id: i64, r#type: String) -> Self {
10 Self {
11 id,
12 r#type,
13 title: None,
14 username: None,
15 first_name: None,
16 last_name: None,
17 is_forum: None,
18 }
19 }
20}