Trait Relation

Source
pub trait Relation {
    // Required method
    fn name(self) -> &'static str;
}
Expand description

Represents possible relations to an Entity Easiest way to implement is implementing Into<&'static str> for your enum, which can builder achieved with strum::IntoStaticStr

Required Methods§

Source

fn name(self) -> &'static str

Implementors§

Source§

impl Relation for NoRelations

Source§

impl<S> Relation for S
where S: Into<&'static str>,