Skip to main content

Module utils

Module utils 

Source
Expand description

Backbone Framework Utilities

Common utility functions and helpers for the Backbone framework. These utilities are designed to be reused across modules.

Structs§

PaginationMeta
Pagination metadata for responses
PaginationParams
Standard pagination parameters

Enums§

BackboneError
Common error types for backbone operations

Functions§

days_ago
Get timestamp for N days ago
days_from_now
Get timestamp for N days from now
hours_ago
Get timestamp for N hours ago
hours_from_now
Get timestamp for N hours from now
is_future
Check if a timestamp is in the future
is_past
Check if a timestamp is in the past
is_valid_email
Validate email format (basic)
is_valid_username
Validate username format
is_valid_uuid
Validate UUID format
minutes_from_now
Get timestamp for N minutes from now
new_id
Generate a new UUID v4
new_id_string
Generate a new UUID v4 as string
normalize_string
Trim and lowercase a string
now
Get current timestamp
parse_id
Parse UUID from string