Skip to main content

alien_core/import/data/azure/
build.rs

1use std::collections::HashMap;
2
3use serde::{Deserialize, Serialize};
4
5/// Azure Build ImportData — an Azure Container Registry build task.
6#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
7#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
8#[cfg_attr(feature = "jsonschema", derive(schemars::JsonSchema))]
9#[serde(rename_all = "camelCase")]
10pub struct AzureBuildImportData {
11    /// Subscription ID hosting the build task.
12    pub subscription_id: String,
13    /// Resource group hosting the registry.
14    pub resource_group: String,
15    /// Azure Container Registry name.
16    pub registry_name: String,
17    /// Build task name.
18    pub task_name: String,
19    /// Environment variables stamped into the task's variables block.
20    pub build_env_vars: HashMap<String, String>,
21}