Expand description
Backbone Framework Utilities
Common utility functions and helpers for the Backbone framework. These utilities are designed to be reused across modules.
Structs§
- Pagination
Meta - Pagination metadata for responses
- Pagination
Params - Standard pagination parameters
Enums§
- Backbone
Error - 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