// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. //! Shared domain types. This crate performs no I/O and depends on nothing else in-tree. //! //! It holds the in-memory shapes of persisted entities ([`entity`]) and the //! name-validation rules ([`name`]) that every entry point — CLI, API, web — //! shares so they cannot drift. pub mod entity; pub mod name; pub use entity::{ ApiToken, Comment, Group, Invite, Issue, IssueState, Key, KeyKind, Label, PullRequest, Repo, Timestamp, User, UserEmail, Visibility, }; pub use name::{MAX_GROUP_DEPTH, MAX_NAME_LEN, NameError, RESERVED_NAMES, validate_name};