reifydb_core/interface/catalog/dictionary.rs
1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2025 ReifyDB
3
4use reifydb_type::value::{dictionary::DictionaryId, r#type::Type};
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: Type,
15 pub id_type: Type,
16}
17
18impl Dictionary {
19 pub fn name(&self) -> &str {
20 &self.name
21 }
22}