geoprox-client 0.5.0

An HTTP client library for interacting with the Geoprox search engine
Documentation
/*
 * geoprox-server
 *
 * Geoprox server implementation providing a HTTP API for geospatial queries and position tracking
 *
 * The version of the OpenAPI document: 0.5.0
 * Contact: singhezra@gmail.com
 * Generated by: https://openapi-generator.tech
 */

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

/// InsertKeyResponse : Returns key and geohash
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InsertKeyResponse {
    /// Geohash encoded latitude/longitude
    #[serde(rename = "geohash")]
    pub geohash: String,
    /// Object key
    #[serde(rename = "key")]
    pub key: String,
}

impl InsertKeyResponse {
    /// Returns key and geohash
    pub fn new(geohash: String, key: String) -> InsertKeyResponse {
        InsertKeyResponse {
            geohash,
            key,
        }
    }
}