Crate hc_crud

Crate hc_crud 

Source
Expand description

Other Resources

Structs§

Entity
The context and content of a specific entry
EntityType
An Entity categorization format that required the name and model values

Enums§

UtilsError
The potential Error types for this CRUD library

Traits§

EntryModel
Identifies a struct as an Entity model type

Functions§

create_entity
Create a new entity
delete_entity
Delete an entity
fetch_record
Get the record for any given EntryHash
fetch_record_latest
Get the latest Record for any given entity ID
find_earliest_action
Finds and returns the Action with the earliest timestamp from a list
find_latest_link
Find the latest link from a list of links
follow_updates
Follow the trail of (earliest) updates and return the full Action path.
get_entities
Get multiple entities for a given base and link tag filter
get_entity
Get an entity by its ID
get_origin_address
Get the entity ID for any given entity EntryHash
now
Get the current unix timestamp
path_from_collection
Create a Path from any iterable list of items that implement the Display trait
to_entry_type
Verify a Record’s entry is the expected entry type
trace_action_history
Follow the Action’s origin until we find the Create Action.
update_entity
Update an entity

Type Aliases§

EmptyEntity
A general use entity definition for deserializing any entity input when the content is not relevant.
UtilsResult
The Result type for Result<T, UtilsError> (UtilsError)