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
use crate::entities::common::Metadata;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct LocationEntity {
    pub metadata: Metadata,
    pub spec: LocationSpec,
    pub relations: Option<Vec<crate::entities::common::Relation>>,
    // Add other fields as necessary
}

#[derive(Debug, Serialize, Deserialize)]
pub struct LocationSpec {
    pub r#type: Option<String>,
    pub target: Option<String>,
    pub presence: Option<String>,
}