pub struct GoogleBusinessPlatformData {
pub location_id: Option<String>,
pub language_code: Option<String>,
pub topic_type: Option<TopicType>,
pub call_to_action: Option<Box<GoogleBusinessPlatformDataCallToAction>>,
pub event: Option<Box<GoogleBusinessPlatformDataEvent>>,
pub offer: Option<Box<GoogleBusinessPlatformDataOffer>>,
}Expand description
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.
Fields§
§location_id: Option<String>Target GBP location ID (e.g. "locations/123456789"). If omitted, uses the default location. Use GET /v1/accounts/{id}/gmb-locations to list locations.
language_code: Option<String>BCP 47 language code (e.g. "en", "de", "es"). Auto-detected if omitted. Set explicitly for short or mixed-language posts.
topic_type: Option<TopicType>Post type. STANDARD is a regular update. EVENT requires the event object. OFFER requires the offer object. Defaults to STANDARD if omitted.
call_to_action: Option<Box<GoogleBusinessPlatformDataCallToAction>>§event: Option<Box<GoogleBusinessPlatformDataEvent>>§offer: Option<Box<GoogleBusinessPlatformDataOffer>>Implementations§
Source§impl GoogleBusinessPlatformData
impl GoogleBusinessPlatformData
Sourcepub fn new() -> GoogleBusinessPlatformData
pub fn new() -> 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.
Trait Implementations§
Source§impl Clone for GoogleBusinessPlatformData
impl Clone for GoogleBusinessPlatformData
Source§fn clone(&self) -> GoogleBusinessPlatformData
fn clone(&self) -> GoogleBusinessPlatformData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GoogleBusinessPlatformData
impl Debug for GoogleBusinessPlatformData
Source§impl Default for GoogleBusinessPlatformData
impl Default for GoogleBusinessPlatformData
Source§fn default() -> GoogleBusinessPlatformData
fn default() -> GoogleBusinessPlatformData
Source§impl<'de> Deserialize<'de> for GoogleBusinessPlatformData
impl<'de> Deserialize<'de> for GoogleBusinessPlatformData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for GoogleBusinessPlatformData
impl PartialEq for GoogleBusinessPlatformData
Source§fn eq(&self, other: &GoogleBusinessPlatformData) -> bool
fn eq(&self, other: &GoogleBusinessPlatformData) -> bool
self and other values to be equal, and is used by ==.