Expand description
Alien Manager API
Auto-generated from OpenAPI spec using Progenitor. Provides a type-safe Rust client for the alien-manager API.
§Usage
ⓘ
use alien_manager_api::Client;
let client = Client::new("http://localhost:8080");
// Create a deployment
let response = client
.create_deployment()
.body(&CreateDeploymentRequest {
name: "my-deployment".into(),
platform: Platform::Aws,
..Default::default()
})
.send()
.await?;Modules§
- builder
- Types for composing operation parameters.
- prelude
- Items consumers will typically use such as the Client.
- types
- Types used as operation parameters and responses.
Structs§
- Byte
Stream - Untyped byte stream used for both success and error responses.
- Client
- Client for Alien Manager API
- Response
Value - Typed value returned by generated client methods.
Enums§
- Error
- Error produced by generated client methods.
Traits§
- Client
Info - Interface for which an implementation is generated for all clients.
- SdkResult
Ext - Extension trait for converting manager SDK results to
AlienError. - SdkResult
ExtReading Body - Async counterpart for operations whose OpenAPI schema does not describe every error status. Progenitor leaves those response bodies unread, so an async adapter is required to preserve the structured Alien error payload.
Functions§
- convert_
sdk_ error - Convert a progenitor SDK error to AlienError, preserving all details.
- convert_
sdk_ error_ reading_ body - Convert a progenitor SDK error to
AlienError, reading the response body of error statuses so structured Alien errors returned by the manager (code, message, hint, retryable) survive the round-trip instead of collapsing into a generic “Unexpected response” error. - is_
retryable_ http_ status - Returns whether an HTTP response represents a transient failure that a caller may safely retry.