Skip to main content

reifydb_core/interface/catalog/
dictionary.rs

1// SPDX-License-Identifier: AGPL-3.0-or-later
2// Copyright (c) 2026 ReifyDB
3
4use reifydb_value::value::{dictionary::DictionaryId, value_type::ValueType};
5use serde::{Deserialize, Serialize};
6
7use crate::interface::catalog::id::NamespaceId;
8
9#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
10pub struct Dictionary {
11	pub id: DictionaryId,
12	pub namespace: NamespaceId,
13	pub name: String,
14	pub value_type: ValueType,
15	pub id_type: ValueType,
16}
17
18impl Dictionary {
19	pub fn name(&self) -> &str {
20		&self.name
21	}
22}