Module entity::prelude[][src]

Represents a collection of core traits that should be imported to enable methods on a variety of types such as Ent and EntBuilder

Traits

AsAny

Trait used for casting support into the Any trait object

Database

Represents a synchronous database, which performs blocking CRUD operations using ents. Given that many database implementations handle interior mutability themselves, the API of this trait does not provide any mut guarantees itself.

DatabaseExt
Ent

Represents the interface for a generic entity whose fields and edges can be accessed by str name regardless of compile-time characteristics

EntBuilder

Represents a builder interface for some ent, capable of building a new ent instance and also saving the new ent to the database at the same time

EntExt
EntLoader

Represents an interface to load some ent from a database

EntQuery

Represents a query interface for some ent

EntType

Represents the interface for an Ent to report its type. This should align with [Ent::r#type()] method and is used when we must know the type without having an instance of an ent.

EntWrapper

Represents a wrapper around some set of ents that implement Ent, useful for edges that can return one of many different types that are variants of an enum