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
53
54
55
56
57
58
59
60
61
62
/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
*
* The version of the OpenAPI document: 1.0.2
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// GoogleBusinessPlatformData : Text and single image only (no videos). Supports STANDARD, EVENT, OFFER, and ALERT post types. Posts appear on GBP, Google Search, and Maps. Use locationId for multi-location posting. Schedule dates accept both ISO 8601 strings (e.g. '2026-04-15T09:00:00Z') and Google's native {year, month, day} objects.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GoogleBusinessPlatformData {
/// Target GBP location ID (e.g. \"locations/123456789\"). If omitted, uses the default location. Use GET /v1/accounts/{id}/gmb-locations to list locations.
#[serde(rename = "locationId", skip_serializing_if = "Option::is_none")]
pub location_id: Option<String>,
/// BCP 47 language code (e.g. \"en\", \"de\", \"es\"). Auto-detected if omitted. Set explicitly for short or mixed-language posts.
#[serde(rename = "languageCode", skip_serializing_if = "Option::is_none")]
pub language_code: Option<String>,
/// Post type. STANDARD is a regular update. EVENT requires the event object. OFFER requires the offer object. Defaults to STANDARD if omitted.
#[serde(rename = "topicType", skip_serializing_if = "Option::is_none")]
pub topic_type: Option<TopicType>,
#[serde(rename = "callToAction", skip_serializing_if = "Option::is_none")]
pub call_to_action: Option<Box<models::GoogleBusinessPlatformDataCallToAction>>,
#[serde(rename = "event", skip_serializing_if = "Option::is_none")]
pub event: Option<Box<models::GoogleBusinessPlatformDataEvent>>,
#[serde(rename = "offer", skip_serializing_if = "Option::is_none")]
pub offer: Option<Box<models::GoogleBusinessPlatformDataOffer>>,
}
impl GoogleBusinessPlatformData {
/// Text and single image only (no videos). Supports STANDARD, EVENT, OFFER, and ALERT post types. Posts appear on GBP, Google Search, and Maps. Use locationId for multi-location posting. Schedule dates accept both ISO 8601 strings (e.g. '2026-04-15T09:00:00Z') and Google's native {year, month, day} objects.
pub fn new() -> GoogleBusinessPlatformData {
GoogleBusinessPlatformData {
location_id: None,
language_code: None,
topic_type: None,
call_to_action: None,
event: None,
offer: None,
}
}
}
/// Post type. STANDARD is a regular update. EVENT requires the event object. OFFER requires the offer object. Defaults to STANDARD if omitted.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum TopicType {
#[serde(rename = "STANDARD")]
Standard,
#[serde(rename = "EVENT")]
Event,
#[serde(rename = "OFFER")]
Offer,
}
impl Default for TopicType {
fn default() -> TopicType {
Self::Standard
}
}