# Definitions · Chromia Docs (concept)

> Definitions in Rell create reusable code components, including entities, objects, structs, enums, queries, operations, and functions.

Source: https://docs.chromia.com/rell/language-features/modules/

# Definitions

Definitions in Rell create reusable code components, including entities, objects, structs, enums, queries, operations,
and functions. Abstract modules serve as templates, namespaces organize code, and external modules enable
cross-blockchain access. Mount names provide flexible identification and mapping of components.

[EntityEntities store data long-term, with unique IDs and support relationships through keys and indices. The
`@log` annotation makes them immutable.](https://docs.chromia.com/rell/language-features/modules/entity/)[ObjectObjects are singleton structures initialized at startup, with default attributes that cannot be created or deleted
by code.](https://docs.chromia.com/rell/language-features/modules/object/)[StructStructs are in-memory structures with default or mutable attributes, managed by the garbage collector, and can
encapsulate function parameters.](https://docs.chromia.com/rell/language-features/modules/struct/)[EnumEnums are sets of constants with unique integer values and built-in functions like `T.values()` to list
values.](https://docs.chromia.com/rell/language-features/modules/enum/)[QueryQueries return GTV-compatible data and do not modify the database, with simple or explicit return statement
options.](https://docs.chromia.com/rell/language-features/modules/query/)[OperationOperations modify data, have no return value, and are declared with the `operation` keyword. The
`require` statement enforces execution conditions.](https://docs.chromia.com/rell/language-features/modules/operation/)[FunctionFunctions offer reusable logic, support various return types, and include features like default parameters, named
arguments, and partial application.](https://docs.chromia.com/rell/language-features/modules/function/)[Abstract moduleAbstract modules and functions provide templates for customization. Client modules import and override these
components to create functional versions.](https://docs.chromia.com/rell/language-features/modules/abstract/)[NamespaceNamespaces group related modules, entities, and functions for better code organization.](https://docs.chromia.com/rell/language-features/modules/namespace/)[Size constraint annotationsThe `@size`, `@min_size`, and `@max_size` annotations put size limits on text and
byte array values in parameters, struct attributes, and entity and object attributes.](https://docs.chromia.com/rell/language-features/modules/size-constraint-annotations/)[Mount namesMount names identify components and map entities/objects to SQL tables. The `@mount` annotation
customizes names with support for relative naming using `.` (append) and `^` (remove).](https://docs.chromia.com/rell/language-features/modules/mount/)

[View this page on docs.chromia.com](https://docs.chromia.com/rell/language-features/modules/)Content mirrored from the live docs
