opensearch-client 0.3.1

Strongly typed OpenSearch Client
Documentation
/*
 * opensearch-client
 *
 * Rust Client for OpenSearch
 *
 * The version of the OpenAPI document: 3.1.0
 * Contact: alberto.paro@gmail.com
 * Generated by Paro OpenAPI Generator
 */

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




#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GeoDecayPlacementValue {
    #[serde(rename = "scale", default, skip_serializing_if = "Option::is_none")]
    pub scale: Option<String>,
    #[serde(rename = "decay", default, skip_serializing_if = "Option::is_none")]
    pub decay: Option<f64>,
    #[serde(rename = "offset", default, skip_serializing_if = "Option::is_none")]
    pub offset: Option<String>,  /// A latitude/longitude as a two-dimensional point. It can be represented in the following ways:
  /// - As a `{lat, long}` object.
  /// - As a geohash value.
  /// - As a `[lon, lat]` array.
  /// - As a string in `"<lat>, <lon>"` or WKT point format.
    #[serde(rename = "origin", default, skip_serializing_if = "Option::is_none")]
    pub origin: Option<common::GeoLocation>,
}

impl GeoDecayPlacementValue {
    
    pub fn new() -> GeoDecayPlacementValue {
        GeoDecayPlacementValue {
            scale: None,
            decay: None,
            offset: None,
            origin: None,
        }
    }
}