luaur_analysis/records/
autocomplete_entry.rs1use crate::enums::autocomplete_entry_kind::AutocompleteEntryKind;
2use crate::enums::parentheses_recommendation::ParenthesesRecommendation;
3use crate::enums::type_correct_kind::TypeCorrectKind;
4use crate::records::extern_type::ExternType;
5use crate::records::property_type_path::Property;
6use crate::type_aliases::tags::Tags;
7use crate::type_aliases::type_id::TypeId;
8use alloc::string::String;
9
10#[derive(Debug, Clone)]
11pub struct AutocompleteEntry {
12 pub kind: AutocompleteEntryKind,
13 pub r#type: Option<TypeId>,
14 pub deprecated: bool,
15 pub wrong_index_type: bool,
16 pub type_correct: TypeCorrectKind,
17 pub containing_extern_type: Option<*const ExternType>,
18 pub prop: Option<*const Property>,
19 pub documentation_symbol: Option<String>,
20 pub tags: Tags,
21 pub parens: ParenthesesRecommendation,
22 pub insert_text: Option<String>,
23 pub indexed_with_self: bool,
24}
25
26impl Default for AutocompleteEntry {
27 fn default() -> Self {
28 Self {
29 kind: AutocompleteEntryKind::Property,
30 r#type: None,
31 deprecated: false,
32 wrong_index_type: false,
33 type_correct: TypeCorrectKind::None,
34 containing_extern_type: None,
35 prop: None,
36 documentation_symbol: None,
37 tags: Tags::new(),
38 parens: ParenthesesRecommendation::None,
39 insert_text: None,
40 indexed_with_self: false,
41 }
42 }
43}