Expand description
§Domain Object Mixin Traits
This library provides a series of mixin traits for adding common properties and behaviors to domain objects. These traits follow the composition-over-inheritance design principle, allowing domain objects to acquire desired functionality by implementing different trait combinations.
§Main Features
- Timestamp Traits: Manage creation, modification, and deletion times
- Identifier Traits: Provide identification information such as ID, code, and name
- State Management Traits: Manage status, visibility, and other states
- User Information Traits: Provide user-related information such as username, email, and password
- Entity Association Traits: Manage entity associations
- Validation and Normalization: Provide data validation and normalization functionality
Re-exports§
pub use auditable::Auditable;pub use creatable::Creatable;pub use data_with_max_age::DataWithMaxAge;pub use deletable::Deletable;pub use desensitizable::Desensitizable;pub use emptyful::Emptyful;pub use has_info::HasInfo;pub use has_info_with_entity::HasInfoWithEntity;pub use has_specific_info::HasSpecificInfo;pub use identifiable::Identifiable;pub use info::Info;pub use info_with_entity::InfoWithEntity;pub use modifiable::Modifiable;pub use normalizable::Normalizable;pub use predefinable::Predefinable;pub use validatable::Validatable;pub use with_birthday::WithBirthday;pub use with_code::WithCode;pub use with_comment::WithComment;pub use with_email::WithEmail;pub use with_entity::WithEntity;pub use with_index::WithIndex;pub use with_key::WithKey;pub use with_name::WithName;pub use with_password::WithPassword;pub use with_security_key::WithSecurityKey;pub use with_status::WithStatus;pub use with_udid::WithUdid;pub use with_username::WithUsername;pub use with_uuid::WithUuid;pub use with_visibility::WithVisibility;
Modules§
- auditable
- Traits for audit information recording functionality
- creatable
- Traits for creation time recording functionality
- data_
with_ max_ age - Traits for maximum age functionality
- deletable
- Traits for mark deletion time recording functionality
- desensitizable
- Traits for desensitization functionality
- emptyful
- Traits for emptiness checking functionality
- has_
info - Traits for basic information retrieval functionality
- has_
info_ with_ entity - Traits for entity-associated basic information retrieval functionality
- has_
specific_ info - Traits for specific information retrieval functionality
- identifiable
- Traits for unique identifier functionality
- info
- Basic information structure
- info_
with_ entity - Basic information structure with entity association
- modifiable
- Traits for last modification time recording functionality
- normalizable
- Traits for normalization functionality
- predefinable
- Traits for predefinition identification functionality
- validatable
- Traits for validation functionality
- with_
birthday - Traits for birthday property functionality
- with_
code - Traits for code property functionality
- with_
comment - Traits for comment property functionality
- with_
email - Traits for email address property functionality
- with_
entity - Traits for associated entity property functionality
- with_
index - Traits for index property functionality
- with_
key - Traits for key property functionality
- with_
name - Traits for name property functionality
- with_
password - Traits for password property functionality
- with_
security_ key - Traits for security key property functionality
- with_
status - Traits for status property functionality
- with_
udid - Traits for device unique identifier property functionality
- with_
username - Traits for username property functionality
- with_
uuid - Traits for universally unique identifier property functionality
- with_
visibility - Traits for visibility property functionality