messaging_api_line/models/
sender.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/// Sender : Change icon and display name
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Sender {
17    /// Display name. Certain words such as `LINE` may not be used.
18    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    /// URL of the image to display as an icon when sending a message
21    #[serde(rename = "iconUrl", skip_serializing_if = "Option::is_none")]
22    pub icon_url: Option<String>,
23}
24
25impl Sender {
26    /// Change icon and display name
27    pub fn new() -> Sender {
28        Sender {
29            name: None,
30            icon_url: None,
31        }
32    }
33}
34