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

#[derive(Debug, Serialize, Deserialize)]
pub struct UserEntity {
    pub api_version: Option<String>,
    pub metadata: Metadata,
    pub spec: UserSpec,
    pub relations: Option<Vec<crate::entities::common::Relation>>,
}

#[derive(Debug, Serialize, Deserialize)]
pub struct UserSpec {
    pub profile: Option<UserProfile>,
    pub member_of: Option<Vec<String>>,
}

#[derive(Debug, Serialize, Deserialize)]
pub struct UserProfile {
    pub display_name: Option<String>,
    pub email: Option<String>,
    pub picture: Option<String>,
}