schemas_v1_models_util_tables - OmniCloudOrg/OmniOrchestrator GitHub Wiki

util_tables (src/schemas/v1/models)

Path: src/schemas/v1/models/util_tables.rs

Table of Contents

Public Items

struct ResourceType

Definition

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>,

Documentation

Represents a resource type in the system.

⚠️ **GitHub.com Fallback** ⚠️