Trait bonsaidb_core::schema::Nameable
source · pub trait Nameable<'a, Id> {
// Required method
fn name(self) -> Result<NamedReference<'a, Id>, Error>;
}
Expand description
A type that can be used as a unique reference for a collection that
implements NamedCollection
.
Required Methods§
sourcefn name(self) -> Result<NamedReference<'a, Id>, Error>
fn name(self) -> Result<NamedReference<'a, Id>, Error>
Returns this name as a NamedReference
.