backstage-client 0.1.4

A Rust client library for interacting with the Backstage Catalog API. Provides type-safe access to Backstage entities with async support, filtering, and comprehensive error handling.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::entities::common::{Metadata, Relation};
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ResourceEntity {
    pub api_version: String,
    pub metadata: Metadata,
    pub spec: ResourceSpec,
    pub relations: Vec<Relation>,
}

#[derive(Debug, Serialize, Deserialize)]
pub struct ResourceSpec {
    pub r#type: String,
    pub owner: String,
    pub dependency_of: Option<Vec<String>>,
}