/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Location {
/// External is true when the answer left the repository — the case a static index cannot answer, and the reason this service resolves through dependencies.
#[serde(rename = "external", skip_serializing_if = "Option::is_none")]
pub external: Option<bool>,
/// Path is repo-relative while External is false, and the module coordinate (\"golang.org/x/mod@v0.14.0/semver/semver.go\") once it is true.
#[serde(rename = "path", skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
/// Range is the span inside that file, in LSP positions.
#[serde(rename = "range", skip_serializing_if = "Option::is_none")]
pub range: Option<Box<models::Range>>,
}
impl Location {
pub fn new() -> Location {
Location {
external: None,
path: None,
range: None,
}
}
}