Skip to main content

Crate alien_platform_api

Crate alien_platform_api 

Source
Expand description

Alien Client SDK

Auto-generated from OpenAPI spec with custom error conversion support.

§Error Handling

For SDK API calls, use SdkResultExt::into_sdk_error() instead of .into_alien_error() to preserve structured API error information:

use alien_client_sdk::SdkResultExt;

// ✅ Good: preserves API error code, message, retryable flag
client.some_method().send().await.into_sdk_error().context(...)?

// ❌ Bad: loses structured error information
client.some_method().send().await.into_alien_error().context(...)?

For non-SDK errors (serde, std, etc.), continue using .into_alien_error().

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§

ByteStream
Untyped byte stream used for both success and error responses.
Client
Client for Alien API
ResponseValue
Typed value returned by generated client methods.

Enums§

Error
Error produced by generated client methods.

Traits§

ClientInfo
Interface for which an implementation is generated for all clients.
SdkResultExt
Extension trait for converting SDK API results to AlienError.

Functions§

convert_sdk_error
Convert a progenitor SDK error to AlienError, preserving all details.