late 0.0.739

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
Documentation
/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api  Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal.  Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateGoogleBusinessMediaRequest {
    /// Publicly accessible image URL
    #[serde(rename = "sourceUrl")]
    pub source_url: String,
    #[serde(rename = "mediaFormat", skip_serializing_if = "Option::is_none")]
    pub media_format: Option<MediaFormat>,
    /// Photo description
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// Where the photo appears on the listing
    #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
    pub category: Option<Category>,
}

impl CreateGoogleBusinessMediaRequest {
    pub fn new(source_url: String) -> CreateGoogleBusinessMediaRequest {
        CreateGoogleBusinessMediaRequest {
            source_url,
            media_format: None,
            description: None,
            category: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum MediaFormat {
    #[serde(rename = "PHOTO")]
    Photo,
    #[serde(rename = "VIDEO")]
    Video,
}

impl Default for MediaFormat {
    fn default() -> MediaFormat {
        Self::Photo
    }
}
/// Where the photo appears on the listing
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Category {
    #[serde(rename = "CATEGORY_UNSPECIFIED")]
    CategoryUnspecified,
    #[serde(rename = "COVER")]
    Cover,
    #[serde(rename = "PROFILE")]
    Profile,
    #[serde(rename = "LOGO")]
    Logo,
    #[serde(rename = "EXTERIOR")]
    Exterior,
    #[serde(rename = "INTERIOR")]
    Interior,
    #[serde(rename = "PRODUCT")]
    Product,
    #[serde(rename = "FOOD_AND_DRINK")]
    FoodAndDrink,
    #[serde(rename = "MENU")]
    Menu,
    #[serde(rename = "COMMON_AREA")]
    CommonArea,
    #[serde(rename = "ROOMS")]
    Rooms,
    #[serde(rename = "TEAMS")]
    Teams,
    #[serde(rename = "AT_WORK")]
    AtWork,
    #[serde(rename = "ADDITIONAL")]
    Additional,
}

impl Default for Category {
    fn default() -> Category {
        Self::CategoryUnspecified
    }
}