pub trait AttributeAPI: ThingAPI + Clone + Into<Attribute> {
    // Provided method
    fn get_owners<'tx>(
        &self,
        transaction: &'tx Transaction<'_>,
        thing_type: Option<ThingType>
    ) -> Result<BoxStream<'tx, Result<Thing>>> { ... }
}

Provided Methods§

source

fn get_owners<'tx>( &self, transaction: &'tx Transaction<'_>, thing_type: Option<ThingType> ) -> Result<BoxStream<'tx, Result<Thing>>>

Retrieves the instances that own this Attribute.

§Arguments
  • transaction – The current transaction
  • owner_type – If specified, filter results for only owners of the given type
§Examples
attribute.get_owners(transaction, Some(owner_type));

Object Safety§

This trait is not object safe.

Implementors§