Skip to main content

hanzo_client/models/
completion.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Completion {
16    /// Detail is the server's short elaboration, typically the type or signature.
17    #[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
18    pub detail: Option<String>,
19    /// Kind is the LSP CompletionItemKind number (2 method, 3 function, 5 field, 6 variable, …), passed through as the protocol spells it.
20    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
21    pub kind: Option<i32>,
22    /// Label is the text a client would insert, and what an editor lists.
23    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
24    pub label: Option<String>,
25}
26
27impl Completion {
28    pub fn new() -> Completion {
29        Completion {
30            detail: None,
31            kind: None,
32            label: None,
33        }
34    }
35}
36