pcs-external 0.1.0

Ppoppo Chat System (PCS) External API client -- gRPC client for the External Developer Platform
Documentation
/// Errors from the PCS External API client.
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
    /// Connection or transport error.
    #[error("External API error: {0}")]
    External(String),

    /// API key contains characters that are not valid HTTP header values
    /// (CR, LF, NUL, non-visible ASCII). Strip control characters and
    /// retry; do not log the raw key.
    #[error("API key is not a valid HTTP header value")]
    InvalidApiKey,

    /// The configured path prefix could not be combined with a request URI.
    /// Indicates a malformed prefix at `connect()` time. Caught at
    /// `connect()` so it cannot reach `Service::call`.
    #[error("Invalid path prefix '{prefix}': {reason}")]
    InvalidPathPrefix { prefix: String, reason: String },
}