messaging_api_line/models/
group_summary_response.rs

1/*
2 * LINE Messaging API
3 *
4 * This document describes LINE Messaging API.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GroupSummaryResponse {
16    /// Group ID
17    #[serde(rename = "groupId")]
18    pub group_id: String,
19    /// Group name
20    #[serde(rename = "groupName")]
21    pub group_name: String,
22    /// Group icon URL. Not included in the response if the user doesn't set a group profile icon.
23    #[serde(rename = "pictureUrl", skip_serializing_if = "Option::is_none")]
24    pub picture_url: Option<String>,
25}
26
27impl GroupSummaryResponse {
28    pub fn new(group_id: String, group_name: String) -> GroupSummaryResponse {
29        GroupSummaryResponse {
30            group_id,
31            group_name,
32            picture_url: None,
33        }
34    }
35}
36