Trait scsys_core::traits::appellation::Appellation

source ·
pub trait Appellation {
    type Class: Classifier;
    type Id: Identifier;

    // Required methods
    fn class(&self) -> &Self::Class;
    fn id(&self) -> &Self::Id;
    fn name(&self) -> String;

    // Provided method
    fn slug(&self) -> String { ... }
}
Expand description

An appellation is considered to be a name or title that is used to identify an object. For our purposes, an Appellation is a type that is used to identify an object in a computational space. The appellation outlines a notation that combines an idenfifier, classifier, and name into a single unique identifier for an object.

Required Associated Types§

Required Methods§

source

fn class(&self) -> &Self::Class

source

fn id(&self) -> &Self::Id

source

fn name(&self) -> String

Provided Methods§

source

fn slug(&self) -> String

Implementations on Foreign Types§

source§

impl<Cls, Id, T> Appellation for (Cls, Id, T)
where Cls: Classifier, Id: Identifier, T: ToString,

§

type Class = Cls

§

type Id = Id

source§

fn class(&self) -> &Cls

source§

fn id(&self) -> &Id

source§

fn name(&self) -> String

Implementors§