messaging_api_line/models/
room_user_profile_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 RoomUserProfileResponse {
16    /// User's display name
17    #[serde(rename = "displayName")]
18    pub display_name: String,
19    /// User ID
20    #[serde(rename = "userId")]
21    pub user_id: String,
22    /// Profile image URL. `https` image URL. Not included in the response if the user doesn't have a profile image.
23    #[serde(rename = "pictureUrl", skip_serializing_if = "Option::is_none")]
24    pub picture_url: Option<String>,
25}
26
27impl RoomUserProfileResponse {
28    pub fn new(display_name: String, user_id: String) -> RoomUserProfileResponse {
29        RoomUserProfileResponse {
30            display_name,
31            user_id,
32            picture_url: None,
33        }
34    }
35}
36