schemas_v1_models_util_tables - OmniCloudOrg/OmniOrchestrator GitHub Wiki
Path: src/schemas/v1/models/util_tables.rs
pub struct ResourceType {
/// Unique identifier
pub id: i32,
/// Name of the resource type (e.g., 'cpu_usage', 'memory_usage')
pub name: String,
/// Category of the resource (e.g., 'compute', 'storage', 'network')
pub category: String,
/// Unit of measurement (e.g., 'vCPU-hour', 'GB-month')
pub unit_of_measurement: String,
/// Optional description of the resource type
pub description: Option<String>,
/// Creation timestamp
pub created_at: DateTime<Utc>,
/// Last update timestamp
pub updated_at: DateTime<Utc>,
Represents a resource type in the system.