Trait spicedb_rust::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>,