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};

/// CreateIndexResponse : Returns index creation status
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateIndexResponse {
    /// If true index was created
    #[serde(rename = "created")]
    pub created: bool,
    /// If true index alredy exist
    #[serde(rename = "existed")]
    pub existed: bool,
}

impl CreateIndexResponse {
    /// Returns index creation status
    pub fn new(created: bool, existed: bool) -> CreateIndexResponse {
        CreateIndexResponse {
            created,
            existed,
        }
    }
}