luaur_analysis/records/
missing_union_property.rs1use crate::type_aliases::type_id::TypeId;
2use alloc::string::String;
3use alloc::vec::Vec;
4
5#[derive(Debug, Clone, PartialEq, Eq, Hash)]
6pub struct MissingUnionProperty {
7 pub(crate) r#type: TypeId,
8 pub(crate) missing: Vec<TypeId>,
9 pub(crate) key: String,
10}
11
12#[allow(non_snake_case)]
13impl MissingUnionProperty {
14 pub fn r#type(&self) -> TypeId {
15 self.r#type
16 }
17
18 pub fn missing(&self) -> &[TypeId] {
19 &self.missing
20 }
21
22 pub fn key(&self) -> &str {
23 &self.key
24 }
25}