// US-003: ApiResponse wrapper — exposes rate-limit header values (ADR-005)

/// Wraps every REST response. Access typed body via `.data`, rate limits via `.used_weight`/`.order_count`.
#[derive(Debug)]
pub struct ApiResponse<T> {
    /// The typed response body
    pub data: T,
    /// X-MBX-USED-WEIGHT-1MINUTE header value (None if absent or non-numeric)
    pub used_weight: Option<u32>,
    /// X-MBX-ORDER-COUNT-1MINUTE header value (None if absent or non-numeric)
    pub order_count: Option<u32>,
}
