Skip to main content

Module models

Module models 

Source

Modules§

admin_activity
announcement
backup_configuration
database_agent_host
database_agent_template
database_host
device
egg_configuration
egg_repository
egg_repository_egg
location
location_database_agent_host
location_database_host
mount
nest
nest_egg
nest_egg_device
nest_egg_mount
nest_egg_variable
node
node_allocation
node_database_agent_host
node_database_host
node_device
node_mount
node_tunnel
oauth_provider
oauth_provider_mapping
role
server
server_activity
server_allocation
server_backup
server_backup_group
server_database
server_database_instance
server_device
server_mount
server_schedule
server_schedule_step
server_subuser
server_tunnel
server_variable
system_backup_policy
system_backup_policy_database_agent_host
system_backup_policy_location
system_backup_policy_node
system_backup_policy_server
user
user_activity
user_api_key
user_command_snippet
user_email_verification
user_oauth_link
user_password_reset
user_recovery_code
user_security_key
user_server_group
user_session
user_ssh_key
user_two_factor_code

Structs§

Fetchable
InsertQueryBuilder
ModelHandler
ModelHandlerHandle
ModelHandlerList
OrderedJson
SQLx helper type to preserve order of keys when encoding JSON. By default, SQLx encodes JSON using serde_json::Value, which does not preserve order of keys. This type allows you to encode any serializable type as JSON while preserving the order of keys.
PaginatedQueryBuilder
Builds a paginated list query out of a select list, a FROM ... WHERE ... body and an ORDER BY clause. The page is fetched without a window count, and the total is derived from the page when possible; otherwise the body is counted in a second query on the same connection, which lets Postgres skip the select list and drop unreferenced LEFT JOINs.
Pagination
PaginationParams
PaginationParamsWithSearch
UpdateQueryBuilder

Enums§

ListenerPriority

Constants§

BY_UUID_CACHE_TTL

Traits§

BaseModel
ByUuid
CreatableModel
DeletableModel
DuplicableModel
EventEmittingModel
IntoAdminApiObject
IntoApiObject
ModelExtension
ResolvableModel
SafeModelExtension
UpdatableModel

Functions§

invalidate_cache_keys
search_sql
Builds the search predicate group for a paginated list query. param is only ever reused, never bound again, so adding this to a query never renumbers its other parameters.
uuid_search_sql
A single uuid disjunct of search_sql, for the few list queries whose text predicates are too bespoke to express as a column list and so still spell their search group out by hand.

Type Aliases§

CreateListenerList
DeleteHandlerList
DuplicateHandlerList
ModelExtensionData
ModelExtensionList
ModelExtensionMapType
UpdateHandlerList