pub enum EntityType {
Person,
Worker,
Organization,
Case,
Place,
Thing,
Event,
Course,
CourseInstance,
CarePathway,
}Expand description
The entity type of a linked record — globally unique across the
family. The wire token is the lowercase snake-case form
(EntityType::as_str); EntityType::service maps it to the
owning service.
Variants§
Person
General person registry.
Worker
Workforce / professional registry.
Organization
schema.org/Organization registry.
Case
Governmental case registry.
Place
schema.org/Place registry.
Thing
schema.org/Thing registry.
Event
schema.org/Event registry.
Course
schema.org/Course template registry.
CourseInstance
A specific offering of a course (course-service sub-resource).
CarePathway
Clinical care-pathway registry.
Implementations§
Source§impl EntityType
impl EntityType
Sourcepub const ALL: [EntityType; 10]
pub const ALL: [EntityType; 10]
Every entity type, in a stable order (for iteration / tests).
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
The lowercase wire token used in the URN (e.g. "care_pathway",
"courseinstance").
Sourcepub const fn service(self) -> &'static str
pub const fn service(self) -> &'static str
The service that owns records of this type. Multiple types can map
to one service (course + courseinstance → course-service), which
is why the ref encodes the type, not the service.
Sourcepub fn from_token(token: &str) -> Option<Self>
pub fn from_token(token: &str) -> Option<Self>
Parse a wire token into an EntityType, or None if unknown.