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§

source

fn name(self) -> Result<NamedReference<'a, Id>, Error>

Returns this name as a NamedReference.

Implementations on Foreign Types§

source§

impl<'a> Nameable<'a, u64> for u64

source§

impl<'a, Id> Nameable<'a, Id> for &'a str

source§

fn name(self) -> Result<NamedReference<'a, Id>, Error>

source§

impl<'a, Id> Nameable<'a, Id> for &'a String

source§

fn name(self) -> Result<NamedReference<'a, Id>, Error>

source§

impl<'a, Id> Nameable<'a, Id> for String

source§

fn name(self) -> Result<NamedReference<'a, Id>, Error>

Implementors§

source§

impl<'a, 'b, Id> Nameable<'a, Id> for &'a BorrowedDocument<'b>

source§

impl<'a, C> Nameable<'a, <C as Collection>::PrimaryKey> for &'a CollectionDocument<C>

source§

impl<'a, Id> Nameable<'a, Id> for &'a NamedReference<'a, Id>
where Id: Clone,

source§

impl<'a, Id> Nameable<'a, Id> for NamedReference<'a, Id>

source§

impl<'a, Id> Nameable<'a, Id> for DocumentId