[][src]Trait misskey_api::EntityRef

pub trait EntityRef<E: Entity> {
    pub fn entity_ref(&self) -> Id<E>;
}

Trait for types that serves as a reference (i.e. ID) to E.

Required methods

pub fn entity_ref(&self) -> Id<E>[src]

Gets the reference to the entity.

Loading content...

Implementations on Foreign Types

impl<E: Entity, '_> EntityRef<E> for &'_ E[src]

Loading content...

Implementors

impl<E: Entity> EntityRef<E> for Id<E>[src]

impl<E: Entity, '_> EntityRef<E> for &'_ Id<E>[src]

Loading content...