note lack of support for EntitySchemas

This commit is contained in:
Smitty 2022-12-10 15:43:41 -05:00
parent c53655bc52
commit a982174217
2 changed files with 5 additions and 0 deletions

View file

@ -24,6 +24,8 @@ pub struct Entity {
} }
/// The type of entity: normal entity with a Qid, a property with a Pid, or a lexeme with a Lid. /// The type of entity: normal entity with a Qid, a property with a Pid, or a lexeme with a Lid.
///
/// EntitySchemas (with E IDs) are currently unsupported.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[non_exhaustive] #[non_exhaustive]
pub enum EntityType { pub enum EntityType {

View file

@ -6,7 +6,10 @@ use std::{fmt, num::ParseIntError, str::FromStr};
pub mod consts; pub mod consts;
/// Three main types of IDs entities can have. /// Three main types of IDs entities can have.
///
/// EntitySchemas (with E IDs) are currently unsupported.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[non_exhaustive]
pub enum WikiId { pub enum WikiId {
/// A Qid, representing an entity. /// A Qid, representing an entity.
EntityId(Qid), EntityId(Qid),