/*
* Trieve API
*
* Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
*
* The version of the OpenAPI document: 0.11.7
* Contact: developers@trieve.ai
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LocationRadius {
#[serde(rename = "center")]
pub center: Box<models::GeoInfo>,
#[serde(rename = "radius")]
pub radius: f64,
}
impl LocationRadius {
pub fn new(center: models::GeoInfo, radius: f64) -> LocationRadius {
LocationRadius {
center: Box::new(center),
radius,
}
}
}