dropshot_api_manager_types/apis.rs
1// Copyright 2025 Oxide Computer Company
2
3/// Optional metadata that's part of a `ManagedApiConfig`.
4#[derive(Clone, Debug, Default)]
5pub struct ManagedApiMetadata {
6 /// human-readable description of the API (goes into OpenAPI document)
7 pub description: Option<&'static str>,
8
9 /// the contact URL for the API (goes into OpenAPI document)
10 pub contact_url: Option<&'static str>,
11
12 /// the contact email for the API (goes into OpenAPI document)
13 pub contact_email: Option<&'static str>,
14
15 /// extra, dynamically-typed metadata for internal use
16 pub extra: serde_json::Value,
17}