geoengine-api-client 0.9.2

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Geo Engine API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * Contact: dev@geoengine.de
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchTypes {
    #[serde(rename = "fulltext")]
    pub fulltext: bool,
    #[serde(rename = "prefix")]
    pub prefix: bool,
}

impl SearchTypes {
    pub fn new(fulltext: bool, prefix: bool) -> SearchTypes {
        SearchTypes {
            fulltext,
            prefix,
        }
    }
}