1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* 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 Query {
/// Character is a 0-based UTF-16 code-unit offset within Line, per the LSP specification — not a byte offset and not a rune index.
#[serde(rename = "character", skip_serializing_if = "Option::is_none")]
pub character: Option<i32>,
/// Line is 0-based, per the LSP specification.
#[serde(rename = "line", skip_serializing_if = "Option::is_none")]
pub line: Option<i32>,
/// Path is the repo-relative file, e.g. \"apps/lsp/lsp.go\".
#[serde(rename = "path", skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
/// Relation refines locate: definition, reference, type or implementation. Empty means definition. Every other op ignores it.
#[serde(rename = "relation", skip_serializing_if = "Option::is_none")]
pub relation: Option<String>,
/// Repo is the repository NAME within the caller's own org, e.g. \"cloud\". Not a URL and not an owner/name pair: the owner is the validated principal's org, so this names a repository the caller already owns.
#[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
pub repo: Option<String>,
/// Rev is a branch, tag or commit sha. Empty means the default branch. It is resolved to a commit before anything else happens, so an answer is always about one immutable tree.
#[serde(rename = "rev", skip_serializing_if = "Option::is_none")]
pub rev: Option<String>,
}
impl Query {
pub fn new() -> Query {
Query {
character: None,
line: None,
path: None,
relation: None,
repo: None,
rev: None,
}
}
}