1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* 1MSG WhatsApp Business API (Public)
*
* Public client API for sending messages, managing groups, flows, and templates. This is the API exposed to end customers via platform.1msg.io **Authentication:** Pass the channel token in **one** place. The API checks JSON body (`token`), then query string (`?token=`), then `Authorization: Bearer` header (preferred in production). **Documentation:** https://help.1msg.io/platform-1msg/getting-start/quick-start **API Docs:** https://docs.1msg.io/
*
* The version of the OpenAPI document: 2.0.0
* Contact: support@1msg.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateMeRequest {
/// Profile About section (WhatsApp status text)
#[serde(rename = "about", skip_serializing_if = "Option::is_none")]
pub about: Option<String>,
/// Business address shown on the profile
#[serde(rename = "address", skip_serializing_if = "Option::is_none")]
pub address: Option<String>,
/// Business description (max 256 characters)
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// Business email shown on the profile
#[serde(rename = "email", skip_serializing_if = "Option::is_none")]
pub email: Option<String>,
/// Industry of the business
#[serde(rename = "vertical", skip_serializing_if = "Option::is_none")]
pub vertical: Option<String>,
/// HTTPS URL or data:image/...;base64,... payload
#[serde(rename = "photo", skip_serializing_if = "Option::is_none")]
pub photo: Option<String>,
/// Business website URLs
#[serde(rename = "websites", skip_serializing_if = "Option::is_none")]
pub websites: Option<Vec<String>>,
}
impl UpdateMeRequest {
pub fn new() -> UpdateMeRequest {
UpdateMeRequest {
about: None,
address: None,
description: None,
email: None,
vertical: None,
photo: None,
websites: None,
}
}
}