pub struct ApiConfig {
pub base_url_override: Option<String>,
pub environment_urls: HashMap<String, String>,
pub strict_mode: bool,
pub secrets: HashMap<String, ApertureSecret>,
pub command_mapping: Option<CommandMapping>,
}Expand description
Per-API configuration for base URLs and environment-specific settings
Fields§
§base_url_override: Option<String>Override base URL for this API
environment_urls: HashMap<String, String>Environment-specific base URLs (e.g., “dev”, “staging”, “prod”)
strict_mode: boolWhether this spec was added with –strict flag (preserved for reinit)
secrets: HashMap<String, ApertureSecret>Secret configurations for security schemes (overrides x-aperture-secret extensions)
command_mapping: Option<CommandMapping>Custom command tree mapping (rename groups, operations, add aliases, hide commands)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiConfig
impl<'de> Deserialize<'de> for ApiConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ApiConfig
impl RefUnwindSafe for ApiConfig
impl Send for ApiConfig
impl Sync for ApiConfig
impl Unpin for ApiConfig
impl UnsafeUnpin for ApiConfig
impl UnwindSafe for ApiConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more