reifydb_core/interface/catalog/
namespace.rs

1// Copyright (c) reifydb.com 2025
2// This file is licensed under the AGPL-3.0-or-later, see license.md file
3
4use crate::interface::NamespaceId;
5
6#[derive(Debug, Clone, PartialEq)]
7pub struct NamespaceDef {
8	pub id: NamespaceId,
9	pub name: String,
10}
11
12impl NamespaceDef {
13	pub fn system() -> Self {
14		Self {
15			id: NamespaceId(1),
16			name: "system".to_string(),
17		}
18	}
19}