Skip to main content

extract_response_data

Function extract_response_data 

Source
pub fn extract_response_data<T>(
    response: ApiResponse<T>,
    context: &str,
) -> SDKResult<T>
Expand description

标准化API响应数据提取

§参数

  • response: API响应对象
  • context: 错误上下文描述

§返回

  • Ok(T): 成功提取的数据
  • Err(SDKError): 包含上下文信息的错误